Author: vyemialyanchyk
Date: 2009-04-07 08:46:38 -0400 (Tue, 07 Apr 2009)
New Revision: 14551
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TreeToTableComposite.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TypeMappingCellModifier.java
Log:
JBIDE-4137
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TreeToTableComposite.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TreeToTableComposite.java 2009-04-07
12:46:06 UTC (rev 14550)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TreeToTableComposite.java 2009-04-07
12:46:38 UTC (rev 14551)
@@ -94,7 +94,7 @@
return null;
}
protected Object doGetValue() {
- return new Integer(value);
+ return Integer.valueOf(value);
}
protected void doSetFocus() {
@@ -129,7 +129,7 @@
return null;
} else {
try {
- return new Integer(Integer.parseInt((String) super.doGetValue()));
+ return Integer.valueOf(Integer.parseInt((String) super.doGetValue()));
} catch(NumberFormatException nfe) {
return null;
}
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TypeMappingCellModifier.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TypeMappingCellModifier.java 2009-04-07
12:46:06 UTC (rev 14550)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/TypeMappingCellModifier.java 2009-04-07
12:46:38 UTC (rev 14551)
@@ -104,12 +104,12 @@
if("not-null".equals(property)) { //$NON-NLS-1$
if(tf.getNullable()==null) {
- return new Integer(2);
+ return Integer.valueOf(2);
}
if(tf.getNullable().booleanValue()) {
- return new Integer(0);
+ return Integer.valueOf(0);
} else {
- return new Integer(1);
+ return Integer.valueOf(1);
}
}
Show replies by date