Added: #2477 Option to disable AS2 detection of uninitialized class fields

Added: AS2 detection of uninitialized class fields is cancellable and shows progress
Changed: Icon of "Deobfuscation options" menu from pile of pills to medkit
Fixed: Comments color highlighting
This commit is contained in:
Jindra Petřík
2025-07-01 19:50:18 +02:00
parent 8a3cbf9e2d
commit 5ffc71848b
22 changed files with 225 additions and 37 deletions
@@ -52,7 +52,18 @@ public class CommentItem extends GraphTargetItem {
@Override
public GraphTextWriter appendTo(GraphTextWriter writer, LocalData localData) {
writer.append("/* ");
int commentLinesCount = 0;
for (int i = 0; i < commentLines.length; i++) {
if (commentLines[i] == null) {
continue;
}
commentLinesCount++;
}
if (commentLinesCount == 1) {
writer.append("// ");
} else {
writer.append("/* ");
}
for (int i = 0; i < commentLines.length; i++) {
if (commentLines[i] == null) {
continue;
@@ -62,7 +73,10 @@ public class CommentItem extends GraphTargetItem {
writer.newLine();
}
}
return writer.append(" */");
if (commentLinesCount > 1) {
writer.append(" */");
}
return writer;
}
/**