AD3: A bit faster exporting due turning off Highlighting

This commit is contained in:
Jindra Pet��k
2012-12-20 10:46:17 +01:00
parent 0b81a8686e
commit f6250b92ca
3 changed files with 31 additions and 2 deletions
+5 -1
View File
@@ -589,6 +589,10 @@ public class ABC {
}
public String classToString(int i, boolean highlight, boolean pcode) {
if(!highlight)
{
Highlighting.doHighlight=false;
}
String ret = "";
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintStream out = new PrintStream(baos);
@@ -740,7 +744,7 @@ public class ABC {
out.println(IDENT_STRING + "}");//class
out.println("}");//package
out.flush();
Highlighting.doHighlight=true;
return baos.toString();
}