You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by cl...@apache.org on 2008/07/16 00:43:18 UTC

svn commit: r677079 - /db/jdo/trunk/api2/src/java/javax/jdo/spi/JDOImplHelper.java

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