commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1421448 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math3: exception/util/ fitting/ geometry/partitioning/ ode/ optim/ optimization/fitting/ random/ stat/ util/
Date Thu, 13 Dec 2012 19:46:01 GMT
Author: tn
Date: Thu Dec 13 19:45:57 2012
New Revision: 1421448

URL: http://svn.apache.org/viewvc?rev=1421448&view=rev
Log:
Fix PMD warnings by suppressing or removing unused imports.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/fitting/GaussianFitter.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractSubHyperplane.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/ode/MultistepIntegrator.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optim/BaseOptimizer.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/fitting/GaussianFitter.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/EmpiricalDistribution.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/ValueServer.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/Frequency.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/OpenIntToDoubleHashMap.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/OpenIntToFieldHashMap.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java
Thu Dec 13 19:45:57 2012
@@ -386,7 +386,7 @@ public enum LocalizedFormats implements 
                 return bundle.getString(toString());
             }
 
-        } catch (MissingResourceException mre) {
+        } catch (MissingResourceException mre) { // NOPMD
             // do nothing here
         }
 

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/fitting/GaussianFitter.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/fitting/GaussianFitter.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/fitting/GaussianFitter.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/fitting/GaussianFitter.java
Thu Dec 13 19:45:57 2012
@@ -84,7 +84,7 @@ public class GaussianFitter extends Curv
                     double v = Double.POSITIVE_INFINITY;
                     try {
                         v = super.value(x, p);
-                    } catch (NotStrictlyPositiveException e) {
+                    } catch (NotStrictlyPositiveException e) { // NOPMD
                         // Do nothing.
                     }
                     return v;
@@ -97,7 +97,7 @@ public class GaussianFitter extends Curv
                                    Double.POSITIVE_INFINITY };
                     try {
                         v = super.gradient(x, p);
-                    } catch (NotStrictlyPositiveException e) {
+                    } catch (NotStrictlyPositiveException e) { // NOPMD
                         // Do nothing.
                     }
                     return v;

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractSubHyperplane.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractSubHyperplane.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractSubHyperplane.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractSubHyperplane.java
Thu Dec 13 19:45:57 2012
@@ -17,7 +17,6 @@
 package org.apache.commons.math3.geometry.partitioning;
 
 import org.apache.commons.math3.geometry.Space;
-import org.apache.commons.math3.geometry.partitioning.SubHyperplane;
 
 /** This class implements the dimension-independent parts of {@link SubHyperplane}.
 

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/ode/MultistepIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/ode/MultistepIntegrator.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/ode/MultistepIntegrator.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/ode/MultistepIntegrator.java
Thu Dec 13 19:45:57 2012
@@ -230,7 +230,7 @@ public abstract class MultistepIntegrato
         try {
             starter.integrate(new CountingDifferentialEquations(y0.length),
                               t0, y0, t, new double[y0.length]);
-        } catch (InitializationCompletedMarkerException icme) {
+        } catch (InitializationCompletedMarkerException icme) { // NOPMD
             // this is the expected nominal interruption of the start integrator
         }
 

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optim/BaseOptimizer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optim/BaseOptimizer.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optim/BaseOptimizer.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optim/BaseOptimizer.java
Thu Dec 13 19:45:57 2012
@@ -17,8 +17,6 @@
 package org.apache.commons.math3.optim;
 
 import org.apache.commons.math3.util.Incrementor;
-import org.apache.commons.math3.optim.OptimizationData;
-import org.apache.commons.math3.optim.ConvergenceChecker;
 import org.apache.commons.math3.exception.TooManyEvaluationsException;
 import org.apache.commons.math3.exception.TooManyIterationsException;
 

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/fitting/GaussianFitter.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/fitting/GaussianFitter.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/fitting/GaussianFitter.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/fitting/GaussianFitter.java
Thu Dec 13 19:45:57 2012
@@ -28,8 +28,6 @@ import org.apache.commons.math3.exceptio
 import org.apache.commons.math3.exception.NotStrictlyPositiveException;
 import org.apache.commons.math3.exception.util.LocalizedFormats;
 import org.apache.commons.math3.optimization.DifferentiableMultivariateVectorOptimizer;
-import org.apache.commons.math3.optimization.fitting.CurveFitter;
-import org.apache.commons.math3.optimization.fitting.WeightedObservedPoint;
 import org.apache.commons.math3.util.FastMath;
 
 /**
@@ -88,7 +86,7 @@ public class GaussianFitter extends Curv
                     double v = Double.POSITIVE_INFINITY;
                     try {
                         v = super.value(x, p);
-                    } catch (NotStrictlyPositiveException e) {
+                    } catch (NotStrictlyPositiveException e) { // NOPMD
                         // Do nothing.
                     }
                     return v;
@@ -101,7 +99,7 @@ public class GaussianFitter extends Curv
                                    Double.POSITIVE_INFINITY };
                     try {
                         v = super.gradient(x, p);
-                    } catch (NotStrictlyPositiveException e) {
+                    } catch (NotStrictlyPositiveException e) { // NOPMD
                         // Do nothing.
                     }
                     return v;

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/EmpiricalDistribution.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/EmpiricalDistribution.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/EmpiricalDistribution.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/EmpiricalDistribution.java
Thu Dec 13 19:45:57 2012
@@ -256,7 +256,7 @@ public class EmpiricalDistribution exten
         } finally {
            try {
                in.close();
-           } catch (IOException ex) {
+           } catch (IOException ex) { // NOPMD
                // ignore
            }
         }
@@ -288,7 +288,7 @@ public class EmpiricalDistribution exten
         } finally {
             try {
                 in.close();
-            } catch (IOException ex) {
+            } catch (IOException ex) { // NOPMD
                 // ignore
             }
         }

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/ValueServer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/ValueServer.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/ValueServer.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/ValueServer.java
Thu Dec 13 19:45:57 2012
@@ -277,7 +277,7 @@ public class ValueServer {
             try {
                 filePointer.close();
                 filePointer = null;
-            } catch (IOException ex) {
+            } catch (IOException ex) { // NOPMD
                 // ignore
             }
         }

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/Frequency.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/Frequency.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/Frequency.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/Frequency.java Thu
Dec 13 19:45:57 2012
@@ -244,7 +244,7 @@ public class Frequency implements Serial
             if (count != null) {
                 result = count.longValue();
             }
-        } catch (ClassCastException ex) {
+        } catch (ClassCastException ex) { // NOPMD
             // ignore and return 0 -- ClassCastException will be thrown if value is not comparable
         }
         return result;

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/OpenIntToDoubleHashMap.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/OpenIntToDoubleHashMap.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/OpenIntToDoubleHashMap.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/OpenIntToDoubleHashMap.java
Thu Dec 13 19:45:57 2012
@@ -501,7 +501,7 @@ public class OpenIntToDoubleHashMap impl
             next = -1;
             try {
                 advance();
-            } catch (NoSuchElementException nsee) {
+            } catch (NoSuchElementException nsee) { // NOPMD
                 // ignored
             }
 
@@ -566,7 +566,7 @@ public class OpenIntToDoubleHashMap impl
 
             // prepare next step
             try {
-                while (states[++next] != FULL) {
+                while (states[++next] != FULL) { // NOPMD
                     // nothing to do
                 }
             } catch (ArrayIndexOutOfBoundsException e) {

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/OpenIntToFieldHashMap.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/OpenIntToFieldHashMap.java?rev=1421448&r1=1421447&r2=1421448&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/OpenIntToFieldHashMap.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/OpenIntToFieldHashMap.java
Thu Dec 13 19:45:57 2012
@@ -514,7 +514,7 @@ public class OpenIntToFieldHashMap<T ext
             next = -1;
             try {
                 advance();
-            } catch (NoSuchElementException nsee) {
+            } catch (NoSuchElementException nsee) { // NOPMD
                 // ignored
             }
 
@@ -579,7 +579,7 @@ public class OpenIntToFieldHashMap<T ext
 
             // prepare next step
             try {
-                while (states[++next] != FULL) {
+                while (states[++next] != FULL) { // NOPMD
                     // nothing to do
                 }
             } catch (ArrayIndexOutOfBoundsException e) {



Mime
View raw message