You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2018/11/27 13:26:24 UTC

commons-rng git commit: Testing detection of API breaking changes.

Repository: commons-rng
Updated Branches:
  refs/heads/api_check_test [created] 8f5268709


Testing detection of API breaking changes.


Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/8f526870
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/8f526870
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/8f526870

Branch: refs/heads/api_check_test
Commit: 8f52687093601d475f8a2ec374b656db4afbade9
Parents: a39c3a9
Author: Gilles <er...@apache.org>
Authored: Tue Nov 27 14:23:03 2018 +0100
Committer: Gilles <er...@apache.org>
Committed: Tue Nov 27 14:23:03 2018 +0100

----------------------------------------------------------------------
 .../distribution/BoxMullerGaussianSampler.java  |  2 --
 .../distribution/DiscreteUniformSampler.java    |  2 --
 pom.xml                                         | 35 ++++++++++++++++++++
 3 files changed, 35 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/8f526870/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.java
----------------------------------------------------------------------
diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.java
index e9ba45e..ee4d792 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.java
@@ -29,7 +29,6 @@ import org.apache.commons.rng.UniformRandomProvider;
  */
 @Deprecated
 public class BoxMullerGaussianSampler
-    extends SamplerBase
     implements ContinuousSampler {
     /** Next gaussian. */
     private double nextGaussian = Double.NaN;
@@ -48,7 +47,6 @@ public class BoxMullerGaussianSampler
     public BoxMullerGaussianSampler(UniformRandomProvider rng,
                                     double mean,
                                     double standardDeviation) {
-        super(null);
         this.rng = rng;
         this.mean = mean;
         this.standardDeviation = standardDeviation;

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/8f526870/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.java
----------------------------------------------------------------------
diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.java
index 54442a0..1d10abc 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.java
@@ -25,7 +25,6 @@ import org.apache.commons.rng.UniformRandomProvider;
  * @since 1.0
  */
 public class DiscreteUniformSampler
-    extends SamplerBase
     implements DiscreteSampler {
     /** Lower bound. */
     private final int lower;
@@ -43,7 +42,6 @@ public class DiscreteUniformSampler
     public DiscreteUniformSampler(UniformRandomProvider rng,
                                   int lower,
                                   int upper) {
-        super(null);
         this.rng = rng;
         if (lower > upper) {
             throw new IllegalArgumentException(lower  + " > " + upper);

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/8f526870/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index e5b4e2a..20a4185 100644
--- a/pom.xml
+++ b/pom.xml
@@ -256,6 +256,26 @@
           <skipAssembly>true</skipAssembly>
         </configuration>
       </plugin>
+
+      <plugin>
+        <groupId>org.revapi</groupId>
+        <artifactId>revapi-maven-plugin</artifactId>
+        <version>0.10.5</version>
+        <dependencies>
+          <dependency>
+            <groupId>org.revapi</groupId>
+            <artifactId>revapi-java</artifactId>
+            <version>0.18.1</version>
+          </dependency>
+        </dependencies>
+        <executions>
+          <execution>
+            <id>check</id>
+            <goals><goal>check</goal></goals>
+          </execution>
+        </executions>
+      </plugin>
+
     </plugins>
 
     <pluginManagement>
@@ -392,6 +412,21 @@
           <!-- <aggregate>true</aggregate> -->
         </configuration>
       </plugin>
+
+      <plugin>
+        <groupId>org.revapi</groupId>
+        <artifactId>revapi-maven-plugin</artifactId>
+        <version>0.10.5</version>
+        <reportSets>
+          <reportSet>
+            <reports>
+              <report>report</report>
+              <report>report-aggregate</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+
     </plugins>
   </reporting>