Use .isEmpty() where feasible
See gh-38739
This commit is contained in:
committed by
Phillip Webb
parent
d3af5cce73
commit
ac18e3015c
@@ -127,7 +127,7 @@ abstract class HealthEndpointSupport<C, T> {
|
||||
private String getName(String[] path, int pathOffset) {
|
||||
StringBuilder name = new StringBuilder();
|
||||
while (pathOffset < path.length) {
|
||||
name.append((name.length() != 0) ? "/" : "");
|
||||
name.append((!name.isEmpty()) ? "/" : "");
|
||||
name.append(path[pathOffset]);
|
||||
pathOffset++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user