commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r613448 - /commons/proper/math/trunk/src/java/org/apache/commons/math/ode/DummyStepHandler.java
Date Sat, 19 Jan 2008 20:28:41 GMT
Author: luc
Date: Sat Jan 19 12:28:40 2008
New Revision: 613448

URL: http://svn.apache.org/viewvc?rev=613448&view=rev
Log:
removed lazy building of the instance
it was not needed since the instance is small
it introduced synchronization problems

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/ode/DummyStepHandler.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/ode/DummyStepHandler.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/DummyStepHandler.java?rev=613448&r1=613447&r2=613448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/ode/DummyStepHandler.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/ode/DummyStepHandler.java Sat
Jan 19 12:28:40 2008
@@ -51,9 +51,6 @@
    * @return the only instance
    */
   public static DummyStepHandler getInstance() {
-    if (instance == null) {
-      instance = new DummyStepHandler();
-    }
     return instance;
   }
 
@@ -88,7 +85,7 @@
   }
 
   /** The only instance. */
-  private static DummyStepHandler instance = null;
+  private static DummyStepHandler instance = new DummyStepHandler();
 
   private static final long serialVersionUID = 2731635121223090252L;
 



Mime
View raw message