Add missing Override tags -> trigger travis build.

This commit is contained in:
Thomas Neidhart 2015-12-02 21:03:30 +01:00
parent f504277bca
commit 7afc1c34fc
2 changed files with 12 additions and 0 deletions

View File

@ -71,43 +71,54 @@ public class RandomAdaptorTest {
this.value = value; this.value = value;
} }
@Override
public boolean nextBoolean() { public boolean nextBoolean() {
return false; return false;
} }
@Override
public void nextBytes(byte[] bytes) { public void nextBytes(byte[] bytes) {
} }
@Override
public double nextDouble() { public double nextDouble() {
return value; return value;
} }
@Override
public float nextFloat() { public float nextFloat() {
return (float) value; return (float) value;
} }
@Override
public double nextGaussian() { public double nextGaussian() {
return value; return value;
} }
@Override
public int nextInt() { public int nextInt() {
return (int) value; return (int) value;
} }
@Override
public int nextInt(int n) { public int nextInt(int n) {
return (int) value; return (int) value;
} }
@Override
public long nextLong() { public long nextLong() {
return (int) value; return (int) value;
} }
@Override
public void setSeed(int seed) { public void setSeed(int seed) {
} }
@Override
public void setSeed(int[] seed) { public void setSeed(int[] seed) {
} }
@Override
public void setSeed(long seed) { public void setSeed(long seed) {
} }

View File

@ -98,6 +98,7 @@ public class SynchronizedRandomGeneratorTest {
final List<Callable<Double>> tasks = new ArrayList<Callable<Double>>(); final List<Callable<Double>> tasks = new ArrayList<Callable<Double>>();
for (int i = 0; i < numGenerators; i++) { for (int i = 0; i < numGenerators; i++) {
tasks.add(new Callable<Double>() { tasks.add(new Callable<Double>() {
@Override
public Double call() { public Double call() {
Double lastValue = 0d; Double lastValue = 0d;
for (int j = 0; j < numSamples; j++) { for (int j = 0; j < numSamples; j++) {