backported part of r1003351 from trunk to branch 2.X

Add missing @Override marker


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003892 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2010-10-02 21:28:56 +00:00
parent c4f85a60a1
commit b4681e50ff
13 changed files with 33 additions and 0 deletions

View File

@ -70,6 +70,7 @@ public class SmoothingPolynomialBicubicSplineInterpolator
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
@Override
public BicubicSplineInterpolatingFunction interpolate(final double[] xval, public BicubicSplineInterpolatingFunction interpolate(final double[] xval,
final double[] yval, final double[] yval,
final double[][] fval) final double[][] fval)

View File

@ -94,31 +94,37 @@ public class DfpDec extends Dfp {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public Dfp newInstance() { public Dfp newInstance() {
return new DfpDec(getField()); return new DfpDec(getField());
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public Dfp newInstance(final byte x) { public Dfp newInstance(final byte x) {
return new DfpDec(getField(), x); return new DfpDec(getField(), x);
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public Dfp newInstance(final int x) { public Dfp newInstance(final int x) {
return new DfpDec(getField(), x); return new DfpDec(getField(), x);
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public Dfp newInstance(final long x) { public Dfp newInstance(final long x) {
return new DfpDec(getField(), x); return new DfpDec(getField(), x);
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public Dfp newInstance(final double x) { public Dfp newInstance(final double x) {
return new DfpDec(getField(), x); return new DfpDec(getField(), x);
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public Dfp newInstance(final Dfp d) { public Dfp newInstance(final Dfp d) {
// make sure we don't mix number with different precision // make sure we don't mix number with different precision
@ -134,11 +140,13 @@ public class DfpDec extends Dfp {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public Dfp newInstance(final String s) { public Dfp newInstance(final String s) {
return new DfpDec(getField(), s); return new DfpDec(getField(), s);
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public Dfp newInstance(final byte sign, final byte nans) { public Dfp newInstance(final byte sign, final byte nans) {
return new DfpDec(getField(), sign, nans); return new DfpDec(getField(), sign, nans);
} }
@ -153,6 +161,7 @@ public class DfpDec extends Dfp {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
protected int round(int in) { protected int round(int in) {
int msb = mant[mant.length-1]; int msb = mant[mant.length-1];
@ -280,6 +289,7 @@ public class DfpDec extends Dfp {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public Dfp nextAfter(Dfp x) { public Dfp nextAfter(Dfp x) {
final String trapName = "nextAfter"; final String trapName = "nextAfter";

View File

@ -50,6 +50,7 @@ public class DummyLocalizable implements Localizable {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public String toString() { public String toString() {
return source; return source;
} }

View File

@ -98,6 +98,7 @@ public abstract class AbstractScalarDifferentiableOptimizer
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public RealPointValuePair optimize(final DifferentiableMultivariateRealFunction f, public RealPointValuePair optimize(final DifferentiableMultivariateRealFunction f,
final GoalType goalType, final GoalType goalType,
final double[] startPoint) final double[] startPoint)

View File

@ -137,6 +137,7 @@ public abstract class AbstractWell extends BitsStreamGenerator implements Serial
* generator built with the same seed.</p> * generator built with the same seed.</p>
* @param seed the initial seed (32 bits integer) * @param seed the initial seed (32 bits integer)
*/ */
@Override
public void setSeed(final int seed) { public void setSeed(final int seed) {
setSeed(new int[] { seed }); setSeed(new int[] { seed });
} }
@ -147,6 +148,7 @@ public abstract class AbstractWell extends BitsStreamGenerator implements Serial
* @param seed the initial seed (32 bits integers array), if null * @param seed the initial seed (32 bits integers array), if null
* the seed of the generator will be related to the current time * the seed of the generator will be related to the current time
*/ */
@Override
public void setSeed(final int[] seed) { public void setSeed(final int[] seed) {
if (seed == null) { if (seed == null) {
@ -172,11 +174,13 @@ public abstract class AbstractWell extends BitsStreamGenerator implements Serial
* generator built with the same seed.</p> * generator built with the same seed.</p>
* @param seed the initial seed (64 bits integer) * @param seed the initial seed (64 bits integer)
*/ */
@Override
public void setSeed(final long seed) { public void setSeed(final long seed) {
setSeed(new int[] { (int) (seed >>> 32), (int) (seed & 0xffffffffl) }); setSeed(new int[] { (int) (seed >>> 32), (int) (seed & 0xffffffffl) });
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
protected abstract int next(final int bits); protected abstract int next(final int bits);
} }

View File

@ -80,6 +80,7 @@ public class Well1024a extends AbstractWell {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
protected int next(final int bits) { protected int next(final int bits) {
final int indexRm1 = iRm1[index]; final int indexRm1 = iRm1[index];

View File

@ -80,6 +80,7 @@ public class Well19937a extends AbstractWell {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
protected int next(final int bits) { protected int next(final int bits) {
final int indexRm1 = iRm1[index]; final int indexRm1 = iRm1[index];

View File

@ -80,6 +80,7 @@ public class Well19937c extends AbstractWell {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
protected int next(final int bits) { protected int next(final int bits) {
final int indexRm1 = iRm1[index]; final int indexRm1 = iRm1[index];

View File

@ -80,6 +80,7 @@ public class Well44497a extends AbstractWell {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
protected int next(final int bits) { protected int next(final int bits) {
final int indexRm1 = iRm1[index]; final int indexRm1 = iRm1[index];

View File

@ -80,6 +80,7 @@ public class Well44497b extends AbstractWell {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
protected int next(final int bits) { protected int next(final int bits) {
// compute raw value given by WELL44497a generator // compute raw value given by WELL44497a generator

View File

@ -80,6 +80,7 @@ public class Well512a extends AbstractWell {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
protected int next(final int bits) { protected int next(final int bits) {
final int indexRm1 = iRm1[index]; final int indexRm1 = iRm1[index];

View File

@ -292,6 +292,7 @@ public class MultidimensionalCounter implements Iterable<Integer> {
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
@Override
public String toString() { public String toString() {
final StringBuilder sb = new StringBuilder(); final StringBuilder sb = new StringBuilder();
for (int i = 0; i < dimension; i++) { for (int i = 0; i < dimension; i++) {

View File

@ -51,38 +51,47 @@ public class Decimal10 extends DfpDec {
super(factory, sign, nans); super(factory, sign, nans);
} }
@Override
public Dfp newInstance() { public Dfp newInstance() {
return new Decimal10(getField()); return new Decimal10(getField());
} }
@Override
public Dfp newInstance(final byte x) { public Dfp newInstance(final byte x) {
return new Decimal10(getField(), x); return new Decimal10(getField(), x);
} }
@Override
public Dfp newInstance(final int x) { public Dfp newInstance(final int x) {
return new Decimal10(getField(), x); return new Decimal10(getField(), x);
} }
@Override
public Dfp newInstance(final long x) { public Dfp newInstance(final long x) {
return new Decimal10(getField(), x); return new Decimal10(getField(), x);
} }
@Override
public Dfp newInstance(final double x) { public Dfp newInstance(final double x) {
return new Decimal10(getField(), x); return new Decimal10(getField(), x);
} }
@Override
public Dfp newInstance(final Dfp d) { public Dfp newInstance(final Dfp d) {
return new Decimal10(d); return new Decimal10(d);
} }
@Override
public Dfp newInstance(final String s) { public Dfp newInstance(final String s) {
return new Decimal10(getField(), s); return new Decimal10(getField(), s);
} }
@Override
public Dfp newInstance(final byte sign, final byte nans) { public Dfp newInstance(final byte sign, final byte nans) {
return new Decimal10(getField(), sign, nans); return new Decimal10(getField(), sign, nans);
} }
@Override
protected int getDecimalDigits() { protected int getDecimalDigits() {
return 10; return 10;
} }