Skip to content

Commit

Permalink
allow triggering indent cache when indent length is 12
Browse files Browse the repository at this point in the history
  • Loading branch information
ZZZank committed Mar 31, 2024
1 parent 7e58da2 commit c7a0600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/probejs/util/PUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public interface TrySupplier<T> {
}

public static String indent(int indentLength) {
if (indentLength < 12) {
if (indentLength < INDENT_CACHE.length) {
return INDENT_CACHE[indentLength];
}
return String.join("", Collections.nCopies(indentLength, " "));
Expand Down

0 comments on commit c7a0600

Please sign in to comment.