mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 05:32:00 +00:00
Issue #51 AS1/2 displaying java class name instead of expression
Better constantpool detection
This commit is contained in:
@@ -34,9 +34,9 @@ public class DefineLocalTreeItem extends TreeItem implements SetTypeTreeItem {
|
||||
@Override
|
||||
public String toString(ConstantPool constants) {
|
||||
if (value == null) {
|
||||
return hilight("var ") + stripQuotes(name);
|
||||
return hilight("var ") + stripQuotes(name, constants);
|
||||
}
|
||||
return hilight("var ") + stripQuotes(name) + hilight("=") + value.toString(constants);
|
||||
return hilight("var ") + stripQuotes(name, constants) + hilight("=") + value.toString(constants);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user