openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgras...@apache.org
Subject svn commit: r1384461 - /openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
Date Thu, 13 Sep 2012 18:36:47 GMT
Author: jgrassel
Date: Thu Sep 13 18:36:46 2012
New Revision: 1384461

URL: http://svn.apache.org/viewvc?rev=1384461&view=rev
Log:
OPENJPA-2260: Revert Changes

Modified:
    openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java

Modified: openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java?rev=1384461&r1=1384460&r2=1384461&view=diff
==============================================================================
--- openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
(original)
+++ openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
Thu Sep 13 18:36:46 2012
@@ -1826,12 +1826,7 @@ public class EntityManagerImpl
             if ("null".equals(value)) {
                 return null;
             } else {
-                String val = (String) value;
-                int parenIndex = val.indexOf('(');
-                if (!String.class.equals(targetType) && (parenIndex > 0)) {
-                    val = val.substring(0, parenIndex);
-                }
-                return Strings.parse(val, targetType);
+                return Strings.parse((String) value, targetType);
             }
         }
         return value;



Mime
View raw message