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()
|
||||
+ ':'
|
||||
+ getExtension()
|
||||
+ (getClassifier().length() > 0 ? ":" + getClassifier() : "")
|
||||
+ (getClassifier().isEmpty() ? "" : ":" + getClassifier())
|
||||
+ ':'
|
||||
+ getVersion();
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class DefaultArtifact implements Artifact {
|
|||
+ getArtifactId()
|
||||
+ ':'
|
||||
+ getExtension()
|
||||
+ (getClassifier().length() > 0 ? ":" + getClassifier() : "")
|
||||
+ (getClassifier().isEmpty() ? "" : ":" + getClassifier())
|
||||
+ ':'
|
||||
+ getVersion();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue