mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-06 14:38:00 +00:00
memory usage decreased
This commit is contained in:
@@ -58,9 +58,6 @@ public class ClassPath {
|
||||
if (!Objects.equals(this.packageStr, other.packageStr)) {
|
||||
return false;
|
||||
}
|
||||
if (!Objects.equals(this.className, other.className)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return Objects.equals(this.className, other.className);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ public class ScriptPack extends AS3ClassTreeItem {
|
||||
}
|
||||
|
||||
public ScriptPack(ClassPath path, ABC abc, int scriptIndex, List<Integer> traitIndices) {
|
||||
super(path.className, path.toString());
|
||||
super(path.className, path);
|
||||
this.abc = abc;
|
||||
this.scriptIndex = scriptIndex;
|
||||
this.traitIndices = traitIndices;
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.treeitems;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ClassPath;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
@@ -24,9 +26,9 @@ public abstract class AS3ClassTreeItem implements TreeItem {
|
||||
|
||||
private final String name;
|
||||
|
||||
private final String path;
|
||||
private final ClassPath path;
|
||||
|
||||
public AS3ClassTreeItem(String name, String path) {
|
||||
public AS3ClassTreeItem(String name, ClassPath path) {
|
||||
this.name = name;
|
||||
this.path = path;
|
||||
}
|
||||
@@ -36,7 +38,7 @@ public abstract class AS3ClassTreeItem implements TreeItem {
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
return path.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user