memory usage decreased

This commit is contained in:
honfika@gmail.com
2015-03-19 10:21:52 +01:00
parent 7d05b54d70
commit 45fa122d4e
4 changed files with 11 additions and 9 deletions

View File

@@ -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);
}
}

View File

@@ -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;

View File

@@ -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