// 3.b - valid code formatted
// 3.b.i - get the result
formattedSnippet = CommentFormatterUtil.evaluateFormatterEdit(convertedSnippet, edit, null);
// 3.b.ii- convert back to HTML (@see JavaDocRegion#convertJava2Html)
Java2HTMLEntityReader javaReader= new Java2HTMLEntityReader(new StringReader(formattedSnippet));
buf= new char[256];
this.codeSnippetBuffer.setLength(0);
int l;
try {
do {
l= javaReader.read(buf);
if (l != -1)
this.codeSnippetBuffer.append(buf, 0, l);
} while (l > 0);
formattedSnippet = this.codeSnippetBuffer.toString();
javaReader.close();
} catch (IOException e) {
// should not happen
CommentFormatterUtil.log(e);
return;
}