File tree 1 file changed +3
-3
lines changed
arduino-core/src/cc/arduino/contributions/libraries
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ public boolean equals(Object obj) {
133
133
if (!(obj instanceof ContributedLibrary )) {
134
134
return false ;
135
135
}
136
-
136
+ ContributedLibrary other = ( ContributedLibrary ) obj ;
137
137
String thisVersion = getParsedVersion ();
138
- String otherVersion = (( ContributedLibrary ) obj ) .getParsedVersion ();
138
+ String otherVersion = other .getParsedVersion ();
139
139
140
140
boolean versionEquals = (thisVersion != null && otherVersion != null
141
141
&& thisVersion .equals (otherVersion ));
@@ -146,7 +146,7 @@ public boolean equals(Object obj) {
146
146
versionEquals = true ;
147
147
148
148
String thisName = getName ();
149
- String otherName = (( ContributedLibrary ) obj ) .getName ();
149
+ String otherName = other .getName ();
150
150
151
151
boolean nameEquals = thisName == null || otherName == null || thisName .equals (otherName );
152
152
You can’t perform that action at this time.
0 commit comments