mirror of https://github.com/apache/maven.git
Prefer using String.isEmpty over String.length()>0
This commit is contained in:
parent
08979553f2
commit
8f45d51bd6
|
@ -43,7 +43,7 @@ public interface Artifact {
|
||||||
+ getArtifactId()
|
+ getArtifactId()
|
||||||
+ ':'
|
+ ':'
|
||||||
+ getExtension()
|
+ getExtension()
|
||||||
+ (getClassifier().length() > 0 ? ":" + getClassifier() : "")
|
+ (getClassifier().isEmpty() ? "" : ":" + getClassifier())
|
||||||
+ ':'
|
+ ':'
|
||||||
+ getVersion();
|
+ getVersion();
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class DefaultArtifact implements Artifact {
|
||||||
+ getArtifactId()
|
+ getArtifactId()
|
||||||
+ ':'
|
+ ':'
|
||||||
+ getExtension()
|
+ getExtension()
|
||||||
+ (getClassifier().length() > 0 ? ":" + getClassifier() : "")
|
+ (getClassifier().isEmpty() ? "" : ":" + getClassifier())
|
||||||
+ ':'
|
+ ':'
|
||||||
+ getVersion();
|
+ getVersion();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue