commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r651234 - /commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/analysis/UnivariateRealSolverFactory.java
Date Thu, 24 Apr 2008 12:10:36 GMT
Author: luc
Date: Thu Apr 24 05:10:35 2008
New Revision: 651234

URL: http://svn.apache.org/viewvc?rev=651234&view=rev
Log:
removed dependency on discovery

Modified:
    commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/analysis/UnivariateRealSolverFactory.java

Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/analysis/UnivariateRealSolverFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/analysis/UnivariateRealSolverFactory.java?rev=651234&r1=651233&r2=651234&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/analysis/UnivariateRealSolverFactory.java
(original)
+++ commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/analysis/UnivariateRealSolverFactory.java
Thu Apr 24 05:10:35 2008
@@ -16,8 +16,6 @@
  */
 package org.apache.commons.math.analysis;
 
-import org.apache.commons.discovery.tools.DiscoverClass;
-
 /**
  * Abstract factory class used to create {@link UnivariateRealSolver} instances.
  * <p>
@@ -56,16 +54,7 @@
      * @return a new factory.
      */
     public static UnivariateRealSolverFactory newInstance() {
-        UnivariateRealSolverFactory factory = null;
-        try {
-            DiscoverClass dc = new DiscoverClass();
-            factory = (UnivariateRealSolverFactory) dc.newInstance(
-                UnivariateRealSolverFactory.class,
-                "org.apache.commons.math.analysis.UnivariateRealSolverFactoryImpl");
-        } catch(Throwable t) {
-            return new UnivariateRealSolverFactoryImpl();
-        }
-        return factory;
+        return new UnivariateRealSolverFactoryImpl();
     }
     
     /**



Mime
View raw message