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;