db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r677079 - /db/jdo/trunk/api2/src/java/javax/jdo/spi/JDOImplHelper.java
Date Tue, 15 Jul 2008 22:43:18 GMT
Author: clr
Date: Tue Jul 15 15:43:18 2008
New Revision: 677079

URL: http://svn.apache.org/viewvc?rev=677079&view=rev
Log:
JDO-555 Use local copy of jdoImplHelper in implementation

Modified:
    db/jdo/trunk/api2/src/java/javax/jdo/spi/JDOImplHelper.java

Modified: db/jdo/trunk/api2/src/java/javax/jdo/spi/JDOImplHelper.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/spi/JDOImplHelper.java?rev=677079&r1=677078&r2=677079&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/spi/JDOImplHelper.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/spi/JDOImplHelper.java Tue Jul 15 15:43:18 2008
@@ -669,9 +669,8 @@
     /** Register the default special StringConstructor instances.
      */
     static {
-        JDOImplHelper helper = getInstance();
         if (isClassLoadable("java.util.Currency")) {
-            helper.registerStringConstructor(
+            jdoImplHelper.registerStringConstructor(
                     Currency.class, new StringConstructor() {
                 public Object construct(String s) {
                     try {
@@ -688,7 +687,7 @@
                 }
             });
         }
-        helper.registerStringConstructor(Locale.class, new StringConstructor() {
+        jdoImplHelper.registerStringConstructor(Locale.class, new StringConstructor() {
             public Object construct(String s) {
                 try {
                     return getLocale(s);
@@ -698,7 +697,7 @@
                 }
             }
         });
-        helper.registerStringConstructor(Date.class, new StringConstructor() {
+        jdoImplHelper.registerStringConstructor(Date.class, new StringConstructor() {
             public synchronized Object construct(String s) {
                 try {
                     // first, try the String as a Long



Mime
View raw message