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

@@ -687,7 +687,10 @@ public class ABCPanel extends JPanel implements ItemListener, ActionListener, Se
ClassesListTreeModel clModel = (ClassesListTreeModel) scriptsNode;
ScriptPack pack = null;
for (MyEntry<ClassPath, ScriptPack> item : clModel.getList()) {
if (item.getKey().toString().equals(name)) {
ClassPath classPath = item.getKey();
// first check the className to avoid calling unnecessary toString
if (name.endsWith(classPath.className) && classPath.toString().equals(name)) {
pack = item.getValue();
break;
}