Fix PMD warnings by suppressing or removing unused imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1db324482c
commit
7521e5af34
|
@ -386,7 +386,7 @@ public enum LocalizedFormats implements Localizable {
|
|||
return bundle.getString(toString());
|
||||
}
|
||||
|
||||
} catch (MissingResourceException mre) {
|
||||
} catch (MissingResourceException mre) { // NOPMD
|
||||
// do nothing here
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ public class GaussianFitter extends CurveFitter<Gaussian.Parametric> {
|
|||
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 CurveFitter<Gaussian.Parametric> {
|
|||
Double.POSITIVE_INFINITY };
|
||||
try {
|
||||
v = super.gradient(x, p);
|
||||
} catch (NotStrictlyPositiveException e) {
|
||||
} catch (NotStrictlyPositiveException e) { // NOPMD
|
||||
// Do nothing.
|
||||
}
|
||||
return v;
|
||||
|
|
|
@ -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}.
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ public abstract class MultistepIntegrator extends AdaptiveStepsizeIntegrator {
|
|||
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
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -28,8 +28,6 @@ import org.apache.commons.math3.exception.ZeroException;
|
|||
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 CurveFitter<Gaussian.Parametric> {
|
|||
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 CurveFitter<Gaussian.Parametric> {
|
|||
Double.POSITIVE_INFINITY };
|
||||
try {
|
||||
v = super.gradient(x, p);
|
||||
} catch (NotStrictlyPositiveException e) {
|
||||
} catch (NotStrictlyPositiveException e) { // NOPMD
|
||||
// Do nothing.
|
||||
}
|
||||
return v;
|
||||
|
|
|
@ -256,7 +256,7 @@ public class EmpiricalDistribution extends AbstractRealDistribution {
|
|||
} finally {
|
||||
try {
|
||||
in.close();
|
||||
} catch (IOException ex) {
|
||||
} catch (IOException ex) { // NOPMD
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ public class EmpiricalDistribution extends AbstractRealDistribution {
|
|||
} finally {
|
||||
try {
|
||||
in.close();
|
||||
} catch (IOException ex) {
|
||||
} catch (IOException ex) { // NOPMD
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
|
|
@ -277,7 +277,7 @@ public class ValueServer {
|
|||
try {
|
||||
filePointer.close();
|
||||
filePointer = null;
|
||||
} catch (IOException ex) {
|
||||
} catch (IOException ex) { // NOPMD
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
|
|
@ -244,7 +244,7 @@ public class Frequency implements Serializable {
|
|||
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;
|
||||
|
|
|
@ -501,7 +501,7 @@ public class OpenIntToDoubleHashMap implements Serializable {
|
|||
next = -1;
|
||||
try {
|
||||
advance();
|
||||
} catch (NoSuchElementException nsee) {
|
||||
} catch (NoSuchElementException nsee) { // NOPMD
|
||||
// ignored
|
||||
}
|
||||
|
||||
|
@ -566,7 +566,7 @@ public class OpenIntToDoubleHashMap implements Serializable {
|
|||
|
||||
// prepare next step
|
||||
try {
|
||||
while (states[++next] != FULL) {
|
||||
while (states[++next] != FULL) { // NOPMD
|
||||
// nothing to do
|
||||
}
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
|
|
|
@ -514,7 +514,7 @@ public class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Seriali
|
|||
next = -1;
|
||||
try {
|
||||
advance();
|
||||
} catch (NoSuchElementException nsee) {
|
||||
} catch (NoSuchElementException nsee) { // NOPMD
|
||||
// ignored
|
||||
}
|
||||
|
||||
|
@ -579,7 +579,7 @@ public class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Seriali
|
|||
|
||||
// prepare next step
|
||||
try {
|
||||
while (states[++next] != FULL) {
|
||||
while (states[++next] != FULL) { // NOPMD
|
||||
// nothing to do
|
||||
}
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
|
|
Loading…
Reference in New Issue