Skip to content

Commit ee95040

Browse files
cmagliefacchinm
authored andcommitted
Renamed ContributedLibraryReference to ContributedLibraryDependency
1 parent 3cd0ad1 commit ee95040

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

arduino-core/src/cc/arduino/contributions/libraries/ContributedLibrary.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public abstract class ContributedLibrary extends DownloadableContribution {
6161

6262
public abstract List<String> getTypes();
6363

64-
public abstract List<ContributedLibraryReference> getRequires();
64+
public abstract List<ContributedLibraryDependency> getRequires();
6565

6666
public static final Comparator<ContributedLibrary> CASE_INSENSITIVE_ORDER = (o1, o2) -> o1.getName().compareToIgnoreCase(o2.getName());
6767

@@ -117,7 +117,7 @@ public String info() {
117117
res += "\n";
118118
res += " requires :\n";
119119
if (getRequires() != null)
120-
for (ContributedLibraryReference r : getRequires()) {
120+
for (ContributedLibraryDependency r : getRequires()) {
121121
res += " " + r;
122122
}
123123
res += "\n";

arduino-core/src/cc/arduino/contributions/libraries/ContributedLibraryReference.java renamed to arduino-core/src/cc/arduino/contributions/libraries/ContributedLibraryDependency.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,14 @@
2929

3030
package cc.arduino.contributions.libraries;
3131

32-
public abstract class ContributedLibraryReference {
32+
public abstract class ContributedLibraryDependency {
3333

3434
public abstract String getName();
3535

36-
public abstract String getMaintainer();
37-
38-
public abstract String getVersion();
36+
public abstract String getVersionRequired();
3937

4038
@Override
4139
public String toString() {
42-
return getName() + " " + getVersion() + " (" + getMaintainer() + ")";
40+
return getName() + " " + getVersionRequired();
4341
}
4442
}

arduino-core/src/processing/app/packages/UserLibrary.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
import cc.arduino.Constants;
3232
import cc.arduino.contributions.libraries.ContributedLibrary;
33-
import cc.arduino.contributions.libraries.ContributedLibraryReference;
33+
import cc.arduino.contributions.libraries.ContributedLibraryDependency;
3434
import processing.app.helpers.PreferencesMap;
3535

3636
import java.io.File;
@@ -244,7 +244,7 @@ public String getArchiveFileName() {
244244
}
245245

246246
@Override
247-
public List<ContributedLibraryReference> getRequires() {
247+
public List<ContributedLibraryDependency> getRequires() {
248248
return null;
249249
}
250250

0 commit comments

Comments
 (0)