1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-31 20:52:13 +01:00

Renamed ContributedLibraryReference to ContributedLibraryDependency

This commit is contained in:
Cristian Maglie 2017-01-25 17:21:50 +01:00 committed by Martino Facchin
parent 894b1abd8a
commit d72cb2350d
3 changed files with 7 additions and 9 deletions

View File

@ -63,7 +63,7 @@ public abstract class ContributedLibrary extends DownloadableContribution {
public abstract List<String> getTypes();
public abstract List<ContributedLibraryReference> getRequires();
public abstract List<ContributedLibraryDependency> getRequires();
public abstract List<String> getProvidesIncludes();
@ -146,7 +146,7 @@ public abstract class ContributedLibrary extends DownloadableContribution {
res += "\n";
res += " requires :\n";
if (getRequires() != null)
for (ContributedLibraryReference r : getRequires()) {
for (ContributedLibraryDependency r : getRequires()) {
res += " " + r;
}
res += "\n";

View File

@ -29,16 +29,14 @@
package cc.arduino.contributions.libraries;
public abstract class ContributedLibraryReference {
public abstract class ContributedLibraryDependency {
public abstract String getName();
public abstract String getMaintainer();
public abstract String getVersion();
public abstract String getVersionRequired();
@Override
public String toString() {
return getName() + " " + getVersion() + " (" + getMaintainer() + ")";
return getName() + " " + getVersionRequired();
}
}

View File

@ -44,7 +44,7 @@ import com.github.zafarkhaja.semver.Version;
import cc.arduino.Constants;
import cc.arduino.contributions.VersionHelper;
import cc.arduino.contributions.libraries.ContributedLibraryReference;
import cc.arduino.contributions.libraries.ContributedLibraryDependency;
import processing.app.helpers.PreferencesMap;
import processing.app.packages.UserLibraryFolder.Location;
@ -230,7 +230,7 @@ public class UserLibrary {
return maintainer;
}
public List<ContributedLibraryReference> getRequires() {
public List<ContributedLibraryDependency> getRequires() {
return null;
}