You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2016/07/29 05:43:52 UTC

[1/2] [lang] [LANG-1253][GitHub issue #170] Add RandomUtils#nextBoolean() method. Closes #170.

Repository: commons-lang
Updated Branches:
  refs/heads/master bd9adbb63 -> 697329630


[LANG-1253][GitHub issue #170] Add RandomUtils#nextBoolean() method.
Closes #170.

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

Branch: refs/heads/master
Commit: 3899cc6570bd9176c84ad2d5d14febc6c0ddd964
Parents: 1d1883f
Author: Gary Gregory <gg...@apache.org>
Authored: Thu Jul 28 22:41:40 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Thu Jul 28 22:41:40 2016 -0700

----------------------------------------------------------------------
 src/changes/changes.xml                                 |  1 +
 src/main/java/org/apache/commons/lang3/RandomUtils.java | 11 +++++++++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/3899cc65/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 8887572..025ba34 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -46,6 +46,7 @@ The <action> type attribute can be add,update,fix,remove.
   <body>
 
   <release version="3.5" date="tba" description="tba">
+    <action issue="LANG-1253" type="add" dev="ggregory" due-to="adilek">[GitHub issue #170] Add RandomUtils#nextBoolean() method</action>
     <action issue="LANG-1247" type="update" dev="chas" due-to="Benoit Wiart">FastDatePrinter generates extra Date objects</action>
     <action issue="LANG-1018" type="fix" dev="pschumacher" due-to="Nick Manley">Fix precision loss on NumberUtils.createNumber(String)</action>
     <action issue="LANG-1229" type="update" dev="pschumacher" due-to="Ruslan Cheremin">HashCodeBuilder.append(Object,Object) is too big to be inlined, which prevents whole builder to be scalarized</action>

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/3899cc65/src/main/java/org/apache/commons/lang3/RandomUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/RandomUtils.java b/src/main/java/org/apache/commons/lang3/RandomUtils.java
index 594fe3f..a1fad2a 100644
--- a/src/main/java/org/apache/commons/lang3/RandomUtils.java
+++ b/src/main/java/org/apache/commons/lang3/RandomUtils.java
@@ -49,6 +49,17 @@ public class RandomUtils {
 
     /**
      * <p>
+     * Returns a random boolean value
+     * </p>
+     * 
+     * @return the random boolean
+     */
+    public static boolean nextBoolean() {
+        return RANDOM.nextBoolean();
+    }
+    
+    /**
+     * <p>
      * Creates an array of random bytes.
      * </p>
      * 


Re: [2/2] [lang] Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang.git

Posted by Gary Gregory <ga...@gmail.com>.
My mistake, I will have to fix that tomorrow, AFK ATM.

Gary

On Jul 29, 2016 12:33 AM, "Benedikt Ritter" <br...@apache.org> wrote:

> Hi Gary,
>
> <gg...@apache.org> schrieb am Fr., 29. Juli 2016 um 07:43 Uhr:
>
> > Merge branch 'master' of
> > https://git-wip-us.apache.org/repos/asf/commons-lang.git
> >
> > Conflicts:
> >         src/changes/changes.xml
> >
> >
> > Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
> > Commit:
> > http://git-wip-us.apache.org/repos/asf/commons-lang/commit/69732963
> > Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/69732963
> > Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/69732963
> >
> > Branch: refs/heads/master
> > Commit: 697329630f16ee37cab30004aab5b0831fc9ecc3
> > Parents: 3899cc6 bd9adbb
> > Author: Gary Gregory <gg...@apache.org>
> > Authored: Thu Jul 28 22:43:48 2016 -0700
> > Committer: Gary Gregory <gg...@apache.org>
> > Committed: Thu Jul 28 22:43:48 2016 -0700
> >
> > ----------------------------------------------------------------------
> >  src/changes/changes.xml                         |  1 -
> >  .../commons/lang3/time/FastDatePrinter.java     | 75
> ++++++++++++++++----
> >  2 files changed, 60 insertions(+), 16 deletions(-)
> > ----------------------------------------------------------------------
> >
> >
> >
> >
> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/69732963/src/changes/changes.xml
> > ----------------------------------------------------------------------
> > diff --cc src/changes/changes.xml
> > index 025ba34,96487a2..8887572
> > --- a/src/changes/changes.xml
> > +++ b/src/changes/changes.xml
> > @@@ -46,8 -46,8 +46,7 @@@ The <action> type attribute can be add,
> >     <body>
> >
> >     <release version="3.5" date="tba" description="tba">
> > -     <action issue="LANG-1253" type="add" dev="ggregory"
> > due-to="adilek">[GitHub issue #170] Add RandomUtils#nextBoolean()
> > method</action>
> >  -    <action issue="LANG-1248" type="fix" dev="chas" due-to="Benoit
> > Wiart">FastDatePrinter Memory allocation regression</action>
> >  -    <action issue="LANG-1247" type="fix" dev="chas" due-to="Benoit
> > Wiart">FastDatePrinter generates extra Date objects</action>
> >
>
> Why have this entires been dropped from changes.xml?
>
> Benedikt
>
>
> >  +    <action issue="LANG-1247" type="update" dev="chas" due-to="Benoit
> > Wiart">FastDatePrinter generates extra Date objects</action>
> >       <action issue="LANG-1018" type="fix" dev="pschumacher" due-to="Nick
> > Manley">Fix precision loss on NumberUtils.createNumber(String)</action>
> >       <action issue="LANG-1229" type="update" dev="pschumacher"
> > due-to="Ruslan Cheremin">HashCodeBuilder.append(Object,Object) is too big
> > to be inlined, which prevents whole builder to be scalarized</action>
> >       <action issue="LANG-1085" type="add" dev="oheger" due-to="oheger /
> > kinow">Add a circuit breaker implementation</action>
> >
> >
>

Re: [2/2] [lang] Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang.git

Posted by Benedikt Ritter <br...@apache.org>.
Hi Gary,

<gg...@apache.org> schrieb am Fr., 29. Juli 2016 um 07:43 Uhr:

> Merge branch 'master' of
> https://git-wip-us.apache.org/repos/asf/commons-lang.git
>
> Conflicts:
>         src/changes/changes.xml
>
>
> Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
> Commit:
> http://git-wip-us.apache.org/repos/asf/commons-lang/commit/69732963
> Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/69732963
> Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/69732963
>
> Branch: refs/heads/master
> Commit: 697329630f16ee37cab30004aab5b0831fc9ecc3
> Parents: 3899cc6 bd9adbb
> Author: Gary Gregory <gg...@apache.org>
> Authored: Thu Jul 28 22:43:48 2016 -0700
> Committer: Gary Gregory <gg...@apache.org>
> Committed: Thu Jul 28 22:43:48 2016 -0700
>
> ----------------------------------------------------------------------
>  src/changes/changes.xml                         |  1 -
>  .../commons/lang3/time/FastDatePrinter.java     | 75 ++++++++++++++++----
>  2 files changed, 60 insertions(+), 16 deletions(-)
> ----------------------------------------------------------------------
>
>
>
> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/69732963/src/changes/changes.xml
> ----------------------------------------------------------------------
> diff --cc src/changes/changes.xml
> index 025ba34,96487a2..8887572
> --- a/src/changes/changes.xml
> +++ b/src/changes/changes.xml
> @@@ -46,8 -46,8 +46,7 @@@ The <action> type attribute can be add,
>     <body>
>
>     <release version="3.5" date="tba" description="tba">
> -     <action issue="LANG-1253" type="add" dev="ggregory"
> due-to="adilek">[GitHub issue #170] Add RandomUtils#nextBoolean()
> method</action>
>  -    <action issue="LANG-1248" type="fix" dev="chas" due-to="Benoit
> Wiart">FastDatePrinter Memory allocation regression</action>
>  -    <action issue="LANG-1247" type="fix" dev="chas" due-to="Benoit
> Wiart">FastDatePrinter generates extra Date objects</action>
>

Why have this entires been dropped from changes.xml?

Benedikt


>  +    <action issue="LANG-1247" type="update" dev="chas" due-to="Benoit
> Wiart">FastDatePrinter generates extra Date objects</action>
>       <action issue="LANG-1018" type="fix" dev="pschumacher" due-to="Nick
> Manley">Fix precision loss on NumberUtils.createNumber(String)</action>
>       <action issue="LANG-1229" type="update" dev="pschumacher"
> due-to="Ruslan Cheremin">HashCodeBuilder.append(Object,Object) is too big
> to be inlined, which prevents whole builder to be scalarized</action>
>       <action issue="LANG-1085" type="add" dev="oheger" due-to="oheger /
> kinow">Add a circuit breaker implementation</action>
>
>

[2/2] [lang] Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang.git

Posted by gg...@apache.org.
Merge branch 'master' of
https://git-wip-us.apache.org/repos/asf/commons-lang.git

Conflicts:
	src/changes/changes.xml


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

Branch: refs/heads/master
Commit: 697329630f16ee37cab30004aab5b0831fc9ecc3
Parents: 3899cc6 bd9adbb
Author: Gary Gregory <gg...@apache.org>
Authored: Thu Jul 28 22:43:48 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Thu Jul 28 22:43:48 2016 -0700

----------------------------------------------------------------------
 src/changes/changes.xml                         |  1 -
 .../commons/lang3/time/FastDatePrinter.java     | 75 ++++++++++++++++----
 2 files changed, 60 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/69732963/src/changes/changes.xml
----------------------------------------------------------------------
diff --cc src/changes/changes.xml
index 025ba34,96487a2..8887572
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@@ -46,8 -46,8 +46,7 @@@ The <action> type attribute can be add,
    <body>
  
    <release version="3.5" date="tba" description="tba">
-     <action issue="LANG-1253" type="add" dev="ggregory" due-to="adilek">[GitHub issue #170] Add RandomUtils#nextBoolean() method</action>
 -    <action issue="LANG-1248" type="fix" dev="chas" due-to="Benoit Wiart">FastDatePrinter Memory allocation regression</action>
 -    <action issue="LANG-1247" type="fix" dev="chas" due-to="Benoit Wiart">FastDatePrinter generates extra Date objects</action>
 +    <action issue="LANG-1247" type="update" dev="chas" due-to="Benoit Wiart">FastDatePrinter generates extra Date objects</action>
      <action issue="LANG-1018" type="fix" dev="pschumacher" due-to="Nick Manley">Fix precision loss on NumberUtils.createNumber(String)</action>
      <action issue="LANG-1229" type="update" dev="pschumacher" due-to="Ruslan Cheremin">HashCodeBuilder.append(Object,Object) is too big to be inlined, which prevents whole builder to be scalarized</action>
      <action issue="LANG-1085" type="add" dev="oheger" due-to="oheger / kinow">Add a circuit breaker implementation</action>