Author: rob.stryker(a)jboss.com
Date: 2007-10-18 00:55:13 -0400 (Thu, 18 Oct 2007)
New Revision: 4313
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/SimpleTreeItem.java
Log:
genericized
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/SimpleTreeItem.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/SimpleTreeItem.java 2007-10-18
04:54:36 UTC (rev 4312)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/SimpleTreeItem.java 2007-10-18
04:55:13 UTC (rev 4313)
@@ -26,15 +26,15 @@
public class SimpleTreeItem {
- protected ArrayList children;
- protected HashMap properties;
+ protected ArrayList<SimpleTreeItem> children;
+ protected HashMap<Object, Object> properties;
protected SimpleTreeItem parent;
protected Object data;
public SimpleTreeItem(SimpleTreeItem parent, Object data) {
- children = new ArrayList();
- properties = new HashMap();
+ children = new ArrayList<SimpleTreeItem>();
+ properties = new HashMap<Object, Object>();
this.data = data;
this.parent = parent;
if( parent != null ) parent.addChild(this);
@@ -84,7 +84,7 @@
return properties.get(key);
}
- public HashMap getProperties() {
+ public HashMap<Object, Object> getProperties() {
return properties;
}
Show replies by date