NicoK commented on a change in pull request #6294: [FLINK-9013][docs] Document yarn.containers.vcores only being effective whe… URL: https://github.com/apache/flink/pull/6294#discussion_r208962025
########## File path: flink-core/src/main/java/org/apache/flink/configuration/description/HtmlFormatter.java ########## @@ -34,9 +36,22 @@ protected void formatLineBreak(StringBuilder state) { } @Override - protected void formatText(StringBuilder state, String format, String[] elements) { + protected void formatText( + StringBuilder state, + String format, + String[] elements, + EnumSet<TextElement.TextStyle> styles) { String escapedFormat = escapeCharacters(format); + + StringBuilder prefix = new StringBuilder(); + StringBuilder sufix = new StringBuilder(); + if (styles.contains(TextElement.TextStyle.CODE)) { + prefix.append("<tt>"); + sufix.append("</tt>"); + } Review comment: why use a `StringBuilder` for the `prefix`/`suffix` (also there is a typo in suffix)? They only ever contain a single string. This could rather be ``` String prefix = ""; String suffix = ""; if (styles.contains(TextElement.TextStyle.CODE)) { prefix = "<tt>"; sufix = "</tt>"; } ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services