Skip to content
Permalink
Browse files
Use isEmpty instead of comparing length to zero
  • Loading branch information
FSchumacher committed Mar 5, 2022
1 parent c7b4b76 commit a699d2bcd6ac155382e0d4a399d82706b3223140
Showing 1 changed file with 1 addition and 1 deletion.
@@ -89,7 +89,7 @@ public static boolean isAnchorMatched(HTTPSamplerBase newLink, HTTPSamplerBase c
}

final String domain = config.getDomain();
if (domain != null && domain.length() > 0) {
if (domain != null && !domain.isEmpty()) {
if (!isEqualOrMatches(newLink.getDomain(), domain, matcher, patternCache)){
return false;
}

0 comments on commit a699d2b

Please sign in to comment.