tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fra...@apache.org
Subject svn commit: r533219 - in /incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo: helper/DataHelperImpl.java impl/AttributeImpl.java
Date Fri, 27 Apr 2007 20:46:17 GMT
Author: frankb
Date: Fri Apr 27 13:46:16 2007
New Revision: 533219

URL: http://svn.apache.org/viewvc?view=rev&rev=533219
Log:
Remove valueOf calls - not supported in Java 1.4

Modified:
    incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/DataHelperImpl.java
    incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/AttributeImpl.java

Modified: incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/DataHelperImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/DataHelperImpl.java?view=diff&rev=533219&r1=533218&r2=533219
==============================================================================
--- incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/DataHelperImpl.java
(original)
+++ incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/DataHelperImpl.java
Fri Apr 27 13:46:16 2007
@@ -573,34 +573,34 @@
       return DataObjectUtil.getBigInteger(value);
     }
     else if (typeClass == boolean.class || typeClass == Boolean.class) {
-      return Boolean.valueOf(DataObjectUtil.getBoolean(value));
+      return new Boolean(DataObjectUtil.getBoolean(value));
     }
     else if (typeClass == byte.class || typeClass == Byte.class) {
-      return Byte.valueOf(DataObjectUtil.getByte(value));
+      return new Byte(DataObjectUtil.getByte(value));
     }
     else if (typeClass == byte[].class) {
       return DataObjectUtil.getBytes(value);
     }
     else if (typeClass == char.class || typeClass == Character.class) {
-      return Character.valueOf(DataObjectUtil.getChar(value));
+      return new Character(DataObjectUtil.getChar(value));
     }
     else if (typeClass == Date.class) {
       return DataObjectUtil.getDate(value);
     }
     else if (typeClass == double.class || typeClass == Double.class) {
-      return Double.valueOf(DataObjectUtil.getDouble(value));
+      return new Double(DataObjectUtil.getDouble(value));
     }
     else if (typeClass == float.class || typeClass == Float.class) {
-      return Float.valueOf(DataObjectUtil.getFloat(value));
+      return new Float(DataObjectUtil.getFloat(value));
     }
     else if (typeClass == int.class || typeClass == Integer.class) {
-      return Integer.valueOf(DataObjectUtil.getInt(value));
+      return new Integer(DataObjectUtil.getInt(value));
     }
     else if (typeClass == long.class || typeClass == Long.class) {
-      return Long.valueOf(DataObjectUtil.getLong(value));
+      return new Long(DataObjectUtil.getLong(value));
     }
     else if (typeClass == short.class || typeClass == Short.class) {
-      return Short.valueOf(DataObjectUtil.getShort(value));
+      return new Short(DataObjectUtil.getShort(value));
     }
     else if (typeClass == String.class) {
       return DataObjectUtil.getString(value);

Modified: incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/AttributeImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/AttributeImpl.java?view=diff&rev=533219&r1=533218&r2=533219
==============================================================================
--- incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/AttributeImpl.java
(original)
+++ incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/AttributeImpl.java
Fri Apr 27 13:46:16 2007
@@ -183,7 +183,7 @@
   
   public boolean isNullable()
   {
-    throw new UnsupportedOperationException();
+    return false; //throw new UnsupportedOperationException();
   }
 
   public boolean isOpenContent()



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message