Skip to content
Permalink
Browse files
Use String#isEmpty().
  • Loading branch information
garydgregory committed Dec 31, 2020
1 parent 7c0de12 commit d2ff68c9d019b844ca08f91d75277cc0db288a37
Showing 1 changed file with 1 addition and 1 deletion.
@@ -442,7 +442,7 @@ private String makePath()
private String makePath(final String item)
{
String pathPattern;
if ((item.length() == 0 || item.startsWith("/")) && trailing)
if ((item.isEmpty() || item.startsWith("/")) && trailing)
{
pathPattern = path.substring(0, path.length() - 1);
}

0 comments on commit d2ff68c

Please sign in to comment.