Author: dgolovin
Date: 2007-10-24 20:21:28 -0400 (Wed, 24 Oct 2007)
New Revision: 4493
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/autolayout/impl/Group.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java
Log:
Code clean up.
new Integer() replaced for Integer.valueOf()
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/autolayout/impl/Group.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/autolayout/impl/Group.java 2007-10-25
00:21:24 UTC (rev 4492)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/autolayout/impl/Group.java 2007-10-25
00:21:28 UTC (rev 4493)
@@ -35,7 +35,7 @@
public void expandGroup(int _item) {
Item item = allitems[_item];
item.group = this;
- itemList.add(new Integer(_item));
+ itemList.add(Integer.valueOf(_item));
int[] is = item.comments;
for (int i = 0; i < is.length; i++) {
Item item2 = allitems[is[i]];
@@ -219,7 +219,7 @@
private void expandGroup2(int _item) {
Item item = allitems[_item];
item.group = this;
- itemList.add(new Integer(_item));
+ itemList.add(Integer.valueOf(_item));
int[] is = item.comments;
for (int i = 0; i < is.length; i++) {
expandGroup2(is[i]);
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java 2007-10-25
00:21:24 UTC (rev 4492)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java 2007-10-25
00:21:28 UTC (rev 4493)
@@ -672,9 +672,9 @@
private Point getPoint(Properties properties, String key){
Point point = new Point(0,0);
String str = properties.getProperty(key+".x","0");
- point.x = new Integer(str).intValue();
+ point.x = Integer.parseInt(str);
String str2 = properties.getProperty(key+".y","0");
- point.y = new Integer(str2).intValue();
+ point.y = Integer.parseInt(str2);
return point;
}
Show replies by date