Explain what we are doing here, so that our future selves can properly
update the constant in the future.
Change-Id: I65d6187e8c56b30e5524a8e7c77c56b4b7d2c9ac
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
final class PrettyTreeIndent {
private static final Logger LOG = LoggerFactory.getLogger(PrettyTreeIndent.class);
private static final int DEFAULT_INDENT = 4;
+ /**
+ * Size of indent table. The idea is to strike a balance between memory footprint and the number of operations we
+ * perform in {@link #indent(StringBuilder, int)}. Indentation up to {@value #INDENT_STRINGS_SIZE} result in a
+ * single operation.
+ */
private static final int INDENT_STRINGS_SIZE = 16;
private static final String[] INDENT_STRINGS;