We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5b1d86 + ba09c75 commit ca6724aCopy full SHA for ca6724a
arduino-core/src/cc/arduino/contributions/libraries/ContributedLibrary.java
@@ -137,7 +137,10 @@ public boolean equals(Object obj) {
137
String thisVersion = getParsedVersion();
138
String otherVersion = ((ContributedLibrary) obj).getParsedVersion();
139
140
- boolean versionEquals = thisVersion != null && otherVersion != null && thisVersion.equals(otherVersion);
+ // Important: for legacy libs, versions are null. Two legacy libs must
141
+ // always pass this test.
142
+ boolean versionEquals = thisVersion == otherVersion ||
143
+ (thisVersion != null && otherVersion != null && thisVersion.equals(otherVersion));
144
145
String thisName = getName();
146
String otherName = ((ContributedLibrary) obj).getName();
0 commit comments