Use .isEmpty() where feasible
See gh-38739
This commit is contained in:
committed by
Phillip Webb
parent
d3af5cce73
commit
ac18e3015c
@@ -345,7 +345,7 @@ public class AutoConfigureAnnotationProcessor extends AbstractProcessor {
|
||||
}
|
||||
StringBuilder result = new StringBuilder();
|
||||
for (Object item : list) {
|
||||
result.append((result.length() != 0) ? "," : "");
|
||||
result.append((!result.isEmpty()) ? "," : "");
|
||||
result.append(item);
|
||||
}
|
||||
return result.toString();
|
||||
|
||||
Reference in New Issue
Block a user