We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb4729d commit b7bb292Copy full SHA for b7bb292
src/main/java/textFormatter/TextFormatter.java
@@ -176,8 +176,8 @@ public TextFormatter concat(@NotNull String... strings) {
176
* @return {@code true} if the formatter is simple
177
*/
178
public boolean isSimple() {
179
- return (this.contents.length() == 0 || this.isFormattingNotDefined())
180
- && this.concatList.size() == 0; // we cant skip if we need to concat stuff!
+ return (this.contents.isEmpty() || this.isFormattingNotDefined())
+ && this.concatList.isEmpty(); // we cant skip if we need to concat stuff!
181
}
182
183
/**
0 commit comments