DebugAlignWriter.cleanComment() cleans not only comments
Status: Beta
Brought to you by:
vovikg
when a string literal contains '//' (e.g. URIs), the line
gets garbled:
"http://asdasdasd" ----> "http:
this is because cleanComment does not check
whether '//' is contained in string literal or not:
String cleanComment(String line)
{
int comment = line.indexOf("//");
if (comment == -1)
return line;
if (comment == 0 || line.trim
().startsWith("//"))
return "";
return line.substring(0, comment);
}
Probably still an issue... I have to retest this.