netflix.nebula.dependency.recommender.provider.AbstractRecommendationProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nebula-dependency-recommender Show documentation
Show all versions of nebula-dependency-recommender Show documentation
Allows projects to leave off version numbers in dependencies section and have versions recommended by other sources
The newest version!
package netflix.nebula.dependency.recommender.provider;
public abstract class AbstractRecommendationProvider implements RecommendationProvider {
protected String name;
static int providersWithoutNames = 0;
@Override
public String getName() {
return name == null ? "recommender-" + (++providersWithoutNames) : name;
}
@Override
public void setName(String name) { this.name = name; }
}