From bdee0b97e16a47efe5b02b4f1d1a07f2ad71753f Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sat, 17 Feb 2007 19:32:09 +0000 Subject: [PATCH] * minor java 5 generics fix: replaced ArrayList with ArrayList --- base/src/org/compiere/model/MTree.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/base/src/org/compiere/model/MTree.java b/base/src/org/compiere/model/MTree.java index 108f1cf69d..486dd88ec0 100644 --- a/base/src/org/compiere/model/MTree.java +++ b/base/src/org/compiere/model/MTree.java @@ -81,7 +81,7 @@ public class MTree extends MTree_Base /** The tree is displayed on the Java Client (i.e. not web) */ private boolean m_clientTree = true; - private HashMap m_nodeIdMap; + private HashMap> m_nodeIdMap; /** Logger */ private static CLogger s_log = CLogger.getCLogger(MTree.class); @@ -405,7 +405,7 @@ public class MTree extends MTree_Base sourceTable, MRole.SQL_FULLYQUALIFIED, m_editable); log.fine(sql); m_nodeRowSet = DB.getRowSet (sql); - m_nodeIdMap = new HashMap(50); + m_nodeIdMap = new HashMap>(50); try { m_nodeRowSet.beforeFirst(); @@ -415,10 +415,10 @@ public class MTree extends MTree_Base i++; int node = m_nodeRowSet.getInt(1); Integer nodeId = Integer.valueOf(node); - ArrayList list = m_nodeIdMap.get(nodeId); + ArrayList list = m_nodeIdMap.get(nodeId); if (list == null) { - list = new ArrayList(5); + list = new ArrayList(5); m_nodeIdMap.put(nodeId, list); } list.add(Integer.valueOf(i)); @@ -444,13 +444,13 @@ public class MTree extends MTree_Base try { //m_nodeRowSet.beforeFirst(); - ArrayList nodeList = m_nodeIdMap.get(Integer.valueOf(node_ID)); + ArrayList nodeList = m_nodeIdMap.get(Integer.valueOf(node_ID)); int size = nodeList != null ? nodeList.size() : 0; int i = 0; //while (m_nodeRowSet.next()) while (i < size) { - Integer nodeId = (Integer)nodeList.get(i); + Integer nodeId = nodeList.get(i); i++; m_nodeRowSet.absolute(nodeId.intValue()); int node = m_nodeRowSet.getInt(1);