Replace some String.length() checks with String.isEmpty()
Closes gh-10451
This commit is contained in:
committed by
Stephane Nicoll
parent
b08e51f0b3
commit
756398b52c
@@ -63,7 +63,7 @@ class UnresolvedDependenciesAnalyzer {
|
||||
|
||||
private boolean hasNoVersion(ModuleVersionSelector selector) {
|
||||
String version = selector.getVersion();
|
||||
return version == null || version.trim().length() == 0;
|
||||
return version == null || version.trim().isEmpty();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user