You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2015/12/02 21:03:45 UTC
[math] Add missing Override tags -> trigger travis build.
Repository: commons-math
Updated Branches:
refs/heads/master f504277bc -> 7afc1c34f
Add missing Override tags -> trigger travis build.
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/7afc1c34
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/7afc1c34
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/7afc1c34
Branch: refs/heads/master
Commit: 7afc1c34fc16ec04f82105f9106b7d1e5232c4d0
Parents: f504277
Author: Thomas Neidhart <th...@gmail.com>
Authored: Wed Dec 2 21:03:30 2015 +0100
Committer: Thomas Neidhart <th...@gmail.com>
Committed: Wed Dec 2 21:03:30 2015 +0100
----------------------------------------------------------------------
.../apache/commons/math4/random/RandomAdaptorTest.java | 11 +++++++++++
.../math4/random/SynchronizedRandomGeneratorTest.java | 1 +
2 files changed, 12 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-math/blob/7afc1c34/src/test/java/org/apache/commons/math4/random/RandomAdaptorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math4/random/RandomAdaptorTest.java b/src/test/java/org/apache/commons/math4/random/RandomAdaptorTest.java
index da7e763..df8bdba 100644
--- a/src/test/java/org/apache/commons/math4/random/RandomAdaptorTest.java
+++ b/src/test/java/org/apache/commons/math4/random/RandomAdaptorTest.java
@@ -71,43 +71,54 @@ public class RandomAdaptorTest {
this.value = value;
}
+ @Override
public boolean nextBoolean() {
return false;
}
+ @Override
public void nextBytes(byte[] bytes) {
}
+ @Override
public double nextDouble() {
return value;
}
+ @Override
public float nextFloat() {
return (float) value;
}
+ @Override
public double nextGaussian() {
return value;
}
+ @Override
public int nextInt() {
return (int) value;
}
+ @Override
public int nextInt(int n) {
return (int) value;
}
+ @Override
public long nextLong() {
return (int) value;
}
+ @Override
public void setSeed(int seed) {
}
+ @Override
public void setSeed(int[] seed) {
}
+ @Override
public void setSeed(long seed) {
}
http://git-wip-us.apache.org/repos/asf/commons-math/blob/7afc1c34/src/test/java/org/apache/commons/math4/random/SynchronizedRandomGeneratorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math4/random/SynchronizedRandomGeneratorTest.java b/src/test/java/org/apache/commons/math4/random/SynchronizedRandomGeneratorTest.java
index 2c1fe43..b66a127 100644
--- a/src/test/java/org/apache/commons/math4/random/SynchronizedRandomGeneratorTest.java
+++ b/src/test/java/org/apache/commons/math4/random/SynchronizedRandomGeneratorTest.java
@@ -98,6 +98,7 @@ public class SynchronizedRandomGeneratorTest {
final List<Callable<Double>> tasks = new ArrayList<Callable<Double>>();
for (int i = 0; i < numGenerators; i++) {
tasks.add(new Callable<Double>() {
+ @Override
public Double call() {
Double lastValue = 0d;
for (int j = 0; j < numSamples; j++) {