You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2021/08/13 13:04:08 UTC

[commons-rng] branch master updated (8246d5a -> cf2e45a)

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git.


    from 8246d5a  Delete site checkout in the clean phase
     new 2232aab  Update the method to make a boolean
     new cf2e45a  Clean site-content.README file

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/java/org/apache/commons/rng/core/util/NumberFactory.java | 4 ++--
 pom.xml                                                               | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

[commons-rng] 02/02: Clean site-content.README file

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit cf2e45a064bdabcfaea7e49db002c75ae2f88a5a
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Fri Aug 13 14:04:06 2021 +0100

    Clean site-content.README file
---
 pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pom.xml b/pom.xml
index 166266d..47b009b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -505,6 +505,7 @@ This is avoided by creating an empty directory when svn is not available.
                 <configuration>
                   <target name="remove-checkout">
                     <delete dir="${commons.scmPubCheckoutDirectory}" quiet="true"/>
+                    <delete file="${commons.scmPubCheckoutDirectory}.README" quiet="true"/>
                   </target>
                 </configuration>
               </execution>

[commons-rng] 01/02: Update the method to make a boolean

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit 2232aabc3ae634ca9640b709d605a1c95a58d05a
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Fri Aug 13 13:59:26 2021 +0100

    Update the method to make a boolean
    
    There is no requirement to shift the sign bit as the number can be
    directly compared to zero.
---
 .../src/main/java/org/apache/commons/rng/core/util/NumberFactory.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 ddc46f7..59ee1b7 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
@@ -60,7 +60,7 @@ public final class NumberFactory {
      */
     @Deprecated
     public static boolean makeBoolean(int v) {
-        return (v >>> 31) != 0;
+        return v < 0;
     }
 
     /**
@@ -74,7 +74,7 @@ public final class NumberFactory {
      */
     @Deprecated
     public static boolean makeBoolean(long v) {
-        return (v >>> 63) != 0;
+        return v < 0;
     }
 
     /**