From 3c122e41b14ccc72b3952b6ac5a13801962f5438 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Mon, 28 Dec 2009 15:30:03 +0000 Subject: [PATCH] fixed checkstyle warnings git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894187 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/analysis/ComposableFunction.java | 4 ++-- .../math/linear/AbstractRealVector.java | 20 +++++++++---------- .../math/linear/OpenMapRealVector.java | 4 +--- .../org/apache/commons/math/util/BigReal.java | 12 +++++------ 4 files changed, 19 insertions(+), 21 deletions(-) diff --git a/src/main/java/org/apache/commons/math/analysis/ComposableFunction.java b/src/main/java/org/apache/commons/math/analysis/ComposableFunction.java index 3c1f1586d..deee2c45a 100644 --- a/src/main/java/org/apache/commons/math/analysis/ComposableFunction.java +++ b/src/main/java/org/apache/commons/math/analysis/ComposableFunction.java @@ -74,7 +74,7 @@ public abstract class ComposableFunction implements UnivariateRealFunction { return 1/d; } }; - + /** The {@code Math.sin} method wrapped as a {@link ComposableFunction}. */ public static final ComposableFunction SIN = new ComposableFunction() { /** {@inheritDoc} */ @@ -186,7 +186,7 @@ public abstract class ComposableFunction implements UnivariateRealFunction { return Math.log10(d); } }; - + /** The {@code Math.log1p} method wrapped as a {@link ComposableFunction}. */ public static final ComposableFunction LOG1P = new ComposableFunction () { public double value(double d){ diff --git a/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java b/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java index 85eb1e0a2..cf103c066 100644 --- a/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java +++ b/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java @@ -383,7 +383,7 @@ public abstract class AbstractRealVector implements RealVector { throw new IllegalArgumentException(e); } } - + /** {@inheritDoc} */ public RealVector mapExp() { return copy().mapExpToSelf(); @@ -397,12 +397,12 @@ public abstract class AbstractRealVector implements RealVector { throw new IllegalArgumentException(e); } } - + /** {@inheritDoc} */ public RealVector mapExpm1() { return copy().mapExpm1ToSelf(); } - + /** {@inheritDoc} */ public RealVector mapExpm1ToSelf() { try { @@ -411,12 +411,12 @@ public abstract class AbstractRealVector implements RealVector { throw new IllegalArgumentException(e); } } - + /** {@inheritDoc} */ public RealVector mapFloor() { return copy().mapFloorToSelf(); } - + /** {@inheritDoc} */ public RealVector mapFloorToSelf() { try { @@ -425,12 +425,12 @@ public abstract class AbstractRealVector implements RealVector { throw new IllegalArgumentException(e); } } - + /** {@inheritDoc} */ public RealVector mapInv() { return copy().mapInvToSelf(); } - + /** {@inheritDoc} */ public RealVector mapInvToSelf() { try { @@ -486,7 +486,7 @@ public abstract class AbstractRealVector implements RealVector { public RealVector mapMultiply(double d) { return copy().mapMultiplyToSelf(d); } - + /** {@inheritDoc} */ public RealVector mapMultiplyToSelf(double d){ try { @@ -500,7 +500,7 @@ public abstract class AbstractRealVector implements RealVector { public RealVector mapPow(double d) { return copy().mapPowToSelf(d); } - + /** {@inheritDoc} */ public RealVector mapPowToSelf(double d){ try { @@ -584,7 +584,7 @@ public abstract class AbstractRealVector implements RealVector { public RealVector mapSubtract(double d) { return copy().mapSubtractToSelf(d); } - + /** {@inheritDoc} */ public RealVector mapSubtractToSelf(double d){ return mapAddToSelf(-d); diff --git a/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java b/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java index db801d565..febea7a87 100644 --- a/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java +++ b/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java @@ -69,7 +69,6 @@ public class OpenMapRealVector extends AbstractRealVector implements SparseRealV * Construct a (dimension)-length vector of zeros, specifying zero tolerance. * @param dimension Size of the vector * @param epsilon The tolerance for having a value considered zero - * @param defaultValue value for non-specified entries */ public OpenMapRealVector(int dimension, double epsilon) { virtualSize = dimension; @@ -303,7 +302,7 @@ public class OpenMapRealVector extends AbstractRealVector implements SparseRealV } return d; } - + /** {@inheritDoc} */ public double dotProduct(RealVector v) throws IllegalArgumentException { if(v instanceof OpenMapRealVector) { @@ -608,7 +607,6 @@ public class OpenMapRealVector extends AbstractRealVector implements SparseRealV return false; } - /** {@inheritDoc} */ public OpenMapRealVector mapAdd(double d) { return copy().mapAddToSelf(d); diff --git a/src/main/java/org/apache/commons/math/util/BigReal.java b/src/main/java/org/apache/commons/math/util/BigReal.java index 5a904b80b..920b97bdf 100644 --- a/src/main/java/org/apache/commons/math/util/BigReal.java +++ b/src/main/java/org/apache/commons/math/util/BigReal.java @@ -51,7 +51,7 @@ public class BigReal implements FieldElement, Comparable, Seri /** Rounding mode for divisions. **/ private RoundingMode roundingMode = RoundingMode.HALF_UP; - + /*** BigDecimal scale ***/ private int scale = 64; @@ -192,11 +192,11 @@ public class BigReal implements FieldElement, Comparable, Seri * Gets the rounding mode for division operations * The default is {@code RoundingMode.HALF_UP} * @return the rounding mode. - */ + */ public RoundingMode getRoundingMode() { return roundingMode; } - + /*** * Sets the rounding mode for decimal divisions. * @param roundingMode rounding mode for decimal divisions @@ -204,7 +204,7 @@ public class BigReal implements FieldElement, Comparable, Seri public void setRoundingMode(RoundingMode roundingMode) { this.roundingMode = roundingMode; } - + /*** * Sets the scale for division operations. * The default is 64 @@ -213,7 +213,7 @@ public class BigReal implements FieldElement, Comparable, Seri public int getScale() { return scale; } - + /*** * Sets the scale for division operations. * @param scale scale for division operations @@ -221,7 +221,7 @@ public class BigReal implements FieldElement, Comparable, Seri public void setScale(int scale) { this.scale = scale; } - + /** {@inheritDoc} */ public BigReal add(BigReal a) { return new BigReal(d.add(a.d));