mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-28 19:30:44 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user