small refactorings

This commit is contained in:
honfika@gmail.com
2014-12-07 12:41:55 +01:00
parent 1e9da7fd40
commit cdae56d128
36 changed files with 154 additions and 108 deletions

View File

@@ -50,6 +50,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.xml.bind.DatatypeConverter;
/**
* Class with helper method
@@ -797,7 +798,7 @@ public class Helper {
public static String getDecompilationSkippedComment() {
return "// " + AppResources.translate("decompilation.skipped");
}
public static void appendTimeoutComment(GraphTextWriter writer, int timeout) {
writer.appendNoHilight("/*").newLine();
writer.appendNoHilight(" * ").appendNoHilight(AppResources.translate("decompilationError")).newLine();
@@ -863,6 +864,10 @@ public class Helper {
return area;
}
public static String byteArrayToBase64String(byte[] data) {
return DatatypeConverter.printBase64Binary(data);
}
/**
* Formats double value (removes .0 from end)
*