Use isEmpty() where possible

See gh-20370
This commit is contained in:
dreis2211
2020-03-02 20:36:46 +01:00
committed by Stephane Nicoll
parent 4598680692
commit 9588188800
7 changed files with 13 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ class Context {
return null;
}
String relativePath = sourcePath.substring(workingPath.length() + 1);
return (relativePath.length() > 0) ? relativePath : null;
return !relativePath.isEmpty() ? relativePath : null;
}
/**