Skip to content

Commit ff67e8a

Browse files
committed
updated configdoc
1 parent 5a6d41d commit ff67e8a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

site/src/main/java/io/aiven/kafka/connect/tools/ConfigDoc.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,6 @@ public static void main(final String[] args) throws IOException, ClassNotFoundEx
142142

143143
public static class Escaper extends EscapeTool {
144144

145-
private static String[] charParser(final String charText) {
146-
char[] chars = charText.toCharArray();
147-
String[] result = new String[chars.length];
148-
for (int i = 0; i < chars.length; i++) {
149-
result[i] = String.valueOf(chars[i]);
150-
}
151-
return result;
152-
}
153-
154145
/**
155146
* The characters to escape for markdown.
156147
*/
@@ -160,6 +151,15 @@ private static String[] charParser(final String charText) {
160151
*/
161152
private static final String[] APT_CHARS = charParser("\\~=-+*[]<>{}");
162153

154+
private static String[] charParser(final String charText) {
155+
final char[] chars = charText.toCharArray();
156+
final String[] result = new String[chars.length];
157+
for (int i = 0; i < chars.length; i++) {
158+
result[i] = String.valueOf(chars[i]);
159+
}
160+
return result;
161+
}
162+
163163
/**
164164
* Escapes a text string.
165165
*
@@ -174,8 +174,8 @@ private String escape(final String text, final String[] chars) {
174174
return "";
175175
}
176176
String result = text;
177-
for (String c : chars) {
178-
result = result.replace(c, "\\" + c);
177+
for (final String chrStr : chars) {
178+
result = result.replace(chrStr, "\\" + chrStr);
179179
}
180180
return result;
181181
}

0 commit comments

Comments
 (0)