mirror of https://github.com/apache/openjpa.git
Changed 'PrimitiveWrapper.valueOf()' to 'new PrimitiveWrapper', since the valueOf() method is new as of JDK 1.5.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560364 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
58533057a0
commit
9f6b703997
|
@ -128,25 +128,25 @@ public class ReflectingPersistenceCapable
|
|||
sm.replaceBooleanField(this, i)));
|
||||
break;
|
||||
case JavaTypes.BYTE:
|
||||
setValue(i, o, Byte.valueOf(sm.replaceByteField(this, i)));
|
||||
setValue(i, o, new Byte(sm.replaceByteField(this, i)));
|
||||
break;
|
||||
case JavaTypes.CHAR:
|
||||
setValue(i, o, Character.valueOf(sm.replaceCharField(this, i)));
|
||||
setValue(i, o, new Character(sm.replaceCharField(this, i)));
|
||||
break;
|
||||
case JavaTypes.DOUBLE:
|
||||
setValue(i, o, Double.valueOf(sm.replaceDoubleField(this, i)));
|
||||
setValue(i, o, new Double(sm.replaceDoubleField(this, i)));
|
||||
break;
|
||||
case JavaTypes.FLOAT:
|
||||
setValue(i, o, Float.valueOf(sm.replaceFloatField(this, i)));
|
||||
setValue(i, o, new Float(sm.replaceFloatField(this, i)));
|
||||
break;
|
||||
case JavaTypes.INT:
|
||||
setValue(i, o, Integer.valueOf(sm.replaceIntField(this, i)));
|
||||
setValue(i, o, new Integer(sm.replaceIntField(this, i)));
|
||||
break;
|
||||
case JavaTypes.LONG:
|
||||
setValue(i, o, Long.valueOf(sm.replaceLongField(this, i)));
|
||||
setValue(i, o, new Long(sm.replaceLongField(this, i)));
|
||||
break;
|
||||
case JavaTypes.SHORT:
|
||||
setValue(i, o, Short.valueOf(sm.replaceShortField(this, i)));
|
||||
setValue(i, o, new Short(sm.replaceShortField(this, i)));
|
||||
break;
|
||||
case JavaTypes.STRING:
|
||||
setValue(i, o, sm.replaceStringField(this, i));
|
||||
|
|
Loading…
Reference in New Issue