removed lazy building of the instance

it was not needed since the instance is small
it introduced synchronization problems

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@613448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2008-01-19 20:28:40 +00:00
parent a8be93bdff
commit d2f1bf4cd6
1 changed files with 1 additions and 4 deletions

View File

@ -51,9 +51,6 @@ public class DummyStepHandler
* @return the only instance * @return the only instance
*/ */
public static DummyStepHandler getInstance() { public static DummyStepHandler getInstance() {
if (instance == null) {
instance = new DummyStepHandler();
}
return instance; return instance;
} }
@ -88,7 +85,7 @@ public class DummyStepHandler
} }
/** The only instance. */ /** The only instance. */
private static DummyStepHandler instance = null; private static DummyStepHandler instance = new DummyStepHandler();
private static final long serialVersionUID = 2731635121223090252L; private static final long serialVersionUID = 2731635121223090252L;