commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject commons-rng git commit: RNG-63: Deprecate obsolete methods.
Date Tue, 27 Nov 2018 13:16:19 GMT
Repository: commons-rng
Updated Branches:
  refs/heads/master 23a1652c8 -> a39c3a97a


RNG-63: Deprecate obsolete methods.


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

Branch: refs/heads/master
Commit: a39c3a97a41c8705133bd19373f573a634b12125
Parents: 23a1652
Author: Gilles <erans@apache.org>
Authored: Tue Nov 27 14:14:43 2018 +0100
Committer: Gilles <erans@apache.org>
Committed: Tue Nov 27 14:14:43 2018 +0100

----------------------------------------------------------------------
 .../org/apache/commons/rng/core/util/NumberFactory.java | 12 ++++++++++++
 src/changes/changes.xml                                 |  3 +++
 2 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/a39c3a97/commons-rng-core/src/main/java/org/apache/commons/rng/core/util/NumberFactory.java
----------------------------------------------------------------------
diff --git a/commons-rng-core/src/main/java/org/apache/commons/rng/core/util/NumberFactory.java
b/commons-rng-core/src/main/java/org/apache/commons/rng/core/util/NumberFactory.java
index 41d830b..c3a93ec 100644
--- a/commons-rng-core/src/main/java/org/apache/commons/rng/core/util/NumberFactory.java
+++ b/commons-rng-core/src/main/java/org/apache/commons/rng/core/util/NumberFactory.java
@@ -46,7 +46,11 @@ public final class NumberFactory {
     /**
      * @param v Number.
      * @return a boolean.
+     *
+     * @deprecated Since version 1.2. Method has become obsolete following
+     * <a href="https://issues.apache.org/jira/browse/RNG-57">RNG-57</a>.
      */
+    @Deprecated
     public static boolean makeBoolean(int v) {
         return (v >>> 31) != 0;
     }
@@ -54,7 +58,11 @@ public final class NumberFactory {
     /**
      * @param v Number.
      * @return a boolean.
+     *
+     * @deprecated Since version 1.2. Method has become obsolete following
+     * <a href="https://issues.apache.org/jira/browse/RNG-57">RNG-57</a>.
      */
+    @Deprecated
     public static boolean makeBoolean(long v) {
         return (v >>> 63) != 0;
     }
@@ -105,7 +113,11 @@ public final class NumberFactory {
      * @return an {@code int} value made from the "xor" of the
      * {@link #extractHi(long) high order bits} and
      * {@link #extractLo(long) low order bits} of {@code v}.
+     *
+     * @deprecated Since version 1.2. Method has become obsolete following
+     * <a href="https://issues.apache.org/jira/browse/RNG-57">RNG-57</a>.
      */
+    @Deprecated
     public static int makeInt(long v) {
         return extractHi(v) ^ extractLo(v);
     }

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/a39c3a97/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 38cef23..8ab64e3 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -75,6 +75,9 @@ re-run tests that fail, and pass the build if they succeed
 within the allotted number of reruns (the test will be marked
 as 'flaky' in the report).
 ">
+      <action dev="erans" type="update" issue="RNG-63">
+        "NumberFactory": Some methods have become obsolete following RNG-57.
+      </action>
       <action dev="erans" type="update" issue="RNG-64" due-to="Alex D. Herbert">
         "PermutationSampler" and "CombinationSampler" shared code moved to a utility class.
       </action>


Mime
View raw message