RE: [VOTE][LAZY] Migrate Apache Commons BCEL to git
+1 -Original Message- From: Benedikt Ritter [mailto:brit...@apache.org] Sent: Saturday, October 21, 2017 1:22 AM To: Commons Developers List Subject: [VOTE][LAZY] Migrate Apache Commons BCEL to git Hello, I’d like to move Apache Commons BCEL codebase to git, so I’m calling a vote by lazy consensus. If nobody objects within the next 72 hours this vote passes and I will start with the migration. This vote will be open until at least 24-October-2017, 10:30 CEST (UTC+2). Regards, Benedikt - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [lang] [LANG-1360] Add methods to ObjectUtils to get various forms of class names in a null-safe manner
On Sat, Oct 21, 2017 at 6:36 PM, Benedikt Ritter wrote: > > > > Am 21.10.2017 um 13:54 schrieb Allon Mureinik : > > > > Hi guys, > > > > This patch break the CI on GitHub (the checkstyle check). > > > > It's pretty straight forward to fix [1], and if someone could merge it to > > unblock the CI, that would be great. > > Done. > Many thanks! > > > > > > > TIA, > > Allon > > > > [1] https://github.com/apache/commons-lang/pull/302 > > > > On Sat, Oct 21, 2017 at 11:27 AM, Benedikt Ritter > > wrote: > > > >> Hello Gary, > >> > >>> Am 20.10.2017 um 21:19 schrieb ggreg...@apache.org: > >>> > >>> Repository: commons-lang > >>> Updated Branches: > >>> refs/heads/master 88654b79c -> 6ea2fc8d3 > >>> > >>> > >>> [LANG-1360] Add methods to ObjectUtils to get various forms of class > >>> names in a null-safe manner > >> > >> I think this belongs to ClassUtils. > >> > >> Regards, > >> Benedikt > >> > >>> > >>> Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo > >>> Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/ > >> 6ea2fc8d > >>> Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/ > 6ea2fc8d > >>> Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/ > 6ea2fc8d > >>> > >>> Branch: refs/heads/master > >>> Commit: 6ea2fc8d38e035bafaa92c7d3b007be38c2e9000 > >>> Parents: 88654b7 > >>> Author: Gary Gregory > >>> Authored: Fri Oct 20 13:19:56 2017 -0600 > >>> Committer: Gary Gregory > >>> Committed: Fri Oct 20 13:19:56 2017 -0600 > >>> > >>> -- > >>> src/changes/changes.xml | 1 + > >>> .../org/apache/commons/lang3/ObjectUtils.java | 32 > +++ > >>> .../apache/commons/lang3/ObjectUtilsTest.java | 33 > >> > >>> 3 files changed, 66 insertions(+) > >>> -- > >>> > >>> > >>> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ > >> 6ea2fc8d/src/changes/changes.xml > >>> -- > >>> diff --git a/src/changes/changes.xml b/src/changes/changes.xml > >>> index cf4296e..66dd510 100644 > >>> --- a/src/changes/changes.xml > >>> +++ b/src/changes/changes.xml > >>> @@ -53,6 +53,7 @@ The type attribute can be > >> add,update,fix,remove. > >>>ConstructorUtils.invokeConstructor(Class, Object...) > >> regression > >>>EqualsBuilder#isRegistered: swappedPair construction > bug > >>> >> due-to="BruceKuiLiu">org.apache.commons.lang3.time.FastDateParser > should > >> use toUpperCase(Locale) > >>> +Add methods to ObjectUtils to get various forms of class names > in > >> a null-safe manner > >>> > >>> > >>> > >>> > >>> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ > >> 6ea2fc8d/src/main/java/org/apache/commons/lang3/ObjectUtils.java > >>> -- > >>> diff --git a/src/main/java/org/apache/commons/lang3/ObjectUtils.java > >> b/src/main/java/org/apache/commons/lang3/ObjectUtils.java > >>> index 1ec0956..16a6b93 100644 > >>> --- a/src/main/java/org/apache/commons/lang3/ObjectUtils.java > >>> +++ b/src/main/java/org/apache/commons/lang3/ObjectUtils.java > >>> @@ -1033,4 +1033,36 @@ public class ObjectUtils { > >>>return v; > >>>} > >>> > >>> +/** > >>> + * Gets the class name of the given object. > >>> + * > >>> + * @param object the object to query, may be null > >>> + * @return the given object's class name or null if the object is > >> null > >>> + * @since 3.7 > >>> + */ > >>> +public static String getClassName(final Object object) { > >>> +return object == null ? null : object.getClass().getName(); > >>> +} > >>> + > >>> +/** > >>> + * Gets the class simple name of the given object. > >>> + * > >>> + * @param object the object to query, may be null > >>> + * @return the given object's class simple name or null if the > >> object is null > >>> + * @since 3.7 > >>> + */ > >>> +public static String getClassSimpleName(final Object object) { > >>> +return object == null ? null : object.getClass(). > >> getSimpleName(); > >>> +} > >>> + > >>> +/** > >>> + * Gets the class canonical name of the given object. > >>> + * > >>> + * @param object the object to query, may be null > >>> + * @return the given object's class canonical name or null if the > >> object is null > >>> + * @since 3.7 > >>> + */ > >>> +public static String getClassCanonicalName(final Object object) { > >>> +return object == null ? null : object.getClass(). > >> getCanonicalName(); > >>> +} > >>> } > >>> > >>> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ > >> 6ea2fc8d/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > >>> -- > >>> di
Re: [VOTE][LAZY] Migrate Apache Commons BCEL to git
+1 On 10/21/2017 10:19 AM, Gary Gregory wrote: +1 Gary On Oct 21, 2017 02:21, "Benedikt Ritter" wrote: Hello, I’d like to move Apache Commons BCEL codebase to git, so I’m calling a vote by lazy consensus. If nobody objects within the next 72 hours this vote passes and I will start with the migration. This vote will be open until at least 24-October-2017, 10:30 CEST (UTC+2). Regards, Benedikt - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [1/2] [lang] Remove ObjectUtils' trailing white spaces
Thanks Benedikt! Gary On Sat, Oct 21, 2017 at 9:33 AM, wrote: > Repository: commons-lang > Updated Branches: > refs/heads/master be3638eb4 -> 6276d0f84 > > > Remove ObjectUtils' trailing white spaces > > Commit 6ea2fc8 inadvertently introduced trailing white spaces in > ObjectUtils' code, thus breaking the Checkstyle validation. > > This patch removes these redundant TWS in order to allow the build to > pass. > > > Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo > Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/ > f0930aa1 > Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/f0930aa1 > Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/f0930aa1 > > Branch: refs/heads/master > Commit: f0930aa1512a408635d2286c01d49523b1234db7 > Parents: 6ea2fc8 > Author: Allon Mureinik > Authored: Sat Oct 21 14:38:53 2017 +0300 > Committer: Allon Mureinik > Committed: Sat Oct 21 14:39:25 2017 +0300 > > -- > src/main/java/org/apache/commons/lang3/ObjectUtils.java | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > -- > > > http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ > f0930aa1/src/main/java/org/apache/commons/lang3/ObjectUtils.java > -- > diff --git a/src/main/java/org/apache/commons/lang3/ObjectUtils.java > b/src/main/java/org/apache/commons/lang3/ObjectUtils.java > index 16a6b93..8bebba9 100644 > --- a/src/main/java/org/apache/commons/lang3/ObjectUtils.java > +++ b/src/main/java/org/apache/commons/lang3/ObjectUtils.java > @@ -1035,7 +1035,7 @@ public class ObjectUtils { > > /** > * Gets the class name of the given object. > - * > + * > * @param object the object to query, may be null > * @return the given object's class name or null if the object is null > * @since 3.7 > @@ -1046,7 +1046,7 @@ public class ObjectUtils { > > /** > * Gets the class simple name of the given object. > - * > + * > * @param object the object to query, may be null > * @return the given object's class simple name or null if the object > is null > * @since 3.7 > @@ -1057,7 +1057,7 @@ public class ObjectUtils { > > /** > * Gets the class canonical name of the given object. > - * > + * > * @param object the object to query, may be null > * @return the given object's class canonical name or null if the > object is null > * @since 3.7 > >
Re: [lang] [LANG-1360] Add methods to ObjectUtils to get various forms of class names in a null-safe manner
> Am 21.10.2017 um 13:54 schrieb Allon Mureinik : > > Hi guys, > > This patch break the CI on GitHub (the checkstyle check). > > It's pretty straight forward to fix [1], and if someone could merge it to > unblock the CI, that would be great. Done. > > > TIA, > Allon > > [1] https://github.com/apache/commons-lang/pull/302 > > On Sat, Oct 21, 2017 at 11:27 AM, Benedikt Ritter > wrote: > >> Hello Gary, >> >>> Am 20.10.2017 um 21:19 schrieb ggreg...@apache.org: >>> >>> Repository: commons-lang >>> Updated Branches: >>> refs/heads/master 88654b79c -> 6ea2fc8d3 >>> >>> >>> [LANG-1360] Add methods to ObjectUtils to get various forms of class >>> names in a null-safe manner >> >> I think this belongs to ClassUtils. >> >> Regards, >> Benedikt >> >>> >>> Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo >>> Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/ >> 6ea2fc8d >>> Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/6ea2fc8d >>> Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/6ea2fc8d >>> >>> Branch: refs/heads/master >>> Commit: 6ea2fc8d38e035bafaa92c7d3b007be38c2e9000 >>> Parents: 88654b7 >>> Author: Gary Gregory >>> Authored: Fri Oct 20 13:19:56 2017 -0600 >>> Committer: Gary Gregory >>> Committed: Fri Oct 20 13:19:56 2017 -0600 >>> >>> -- >>> src/changes/changes.xml | 1 + >>> .../org/apache/commons/lang3/ObjectUtils.java | 32 +++ >>> .../apache/commons/lang3/ObjectUtilsTest.java | 33 >> >>> 3 files changed, 66 insertions(+) >>> -- >>> >>> >>> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ >> 6ea2fc8d/src/changes/changes.xml >>> -- >>> diff --git a/src/changes/changes.xml b/src/changes/changes.xml >>> index cf4296e..66dd510 100644 >>> --- a/src/changes/changes.xml >>> +++ b/src/changes/changes.xml >>> @@ -53,6 +53,7 @@ The type attribute can be >> add,update,fix,remove. >>>ConstructorUtils.invokeConstructor(Class, Object...) >> regression >>>EqualsBuilder#isRegistered: swappedPair construction bug >>>> due-to="BruceKuiLiu">org.apache.commons.lang3.time.FastDateParser should >> use toUpperCase(Locale) >>> +Add methods to ObjectUtils to get various forms of class names in >> a null-safe manner >>> >>> >>> >>> >>> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ >> 6ea2fc8d/src/main/java/org/apache/commons/lang3/ObjectUtils.java >>> -- >>> diff --git a/src/main/java/org/apache/commons/lang3/ObjectUtils.java >> b/src/main/java/org/apache/commons/lang3/ObjectUtils.java >>> index 1ec0956..16a6b93 100644 >>> --- a/src/main/java/org/apache/commons/lang3/ObjectUtils.java >>> +++ b/src/main/java/org/apache/commons/lang3/ObjectUtils.java >>> @@ -1033,4 +1033,36 @@ public class ObjectUtils { >>>return v; >>>} >>> >>> +/** >>> + * Gets the class name of the given object. >>> + * >>> + * @param object the object to query, may be null >>> + * @return the given object's class name or null if the object is >> null >>> + * @since 3.7 >>> + */ >>> +public static String getClassName(final Object object) { >>> +return object == null ? null : object.getClass().getName(); >>> +} >>> + >>> +/** >>> + * Gets the class simple name of the given object. >>> + * >>> + * @param object the object to query, may be null >>> + * @return the given object's class simple name or null if the >> object is null >>> + * @since 3.7 >>> + */ >>> +public static String getClassSimpleName(final Object object) { >>> +return object == null ? null : object.getClass(). >> getSimpleName(); >>> +} >>> + >>> +/** >>> + * Gets the class canonical name of the given object. >>> + * >>> + * @param object the object to query, may be null >>> + * @return the given object's class canonical name or null if the >> object is null >>> + * @since 3.7 >>> + */ >>> +public static String getClassCanonicalName(final Object object) { >>> +return object == null ? null : object.getClass(). >> getCanonicalName(); >>> +} >>> } >>> >>> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ >> 6ea2fc8d/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java >>> -- >>> diff --git a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java >> b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java >>> index 3da8443..2bf036c 100644 >>> --- a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java >>> +++ b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java >>> @@ -38,6 +38,7 @@ import ja
[ANNOUCEMENT] Apache Commons Codec 1.11 is available
The Apache Commons team is pleased to announce the release of Commons Codec 1.11. Apache Commons Codec (TM) software provides implementations of common encoders and decoders such as Base64, Hex, Phonetic and URLs. Details of the changes and bug fixes in this release can be found in the release notes: http://www.apache.org/dist/commons/codec/RELEASE-NOTES.txt For information on Commons VFS please visit the VFS website: http://commons.apache.org/codec/ Commons Codec can be downloaded from the following page: http://commons.apache.org/codec/download_codec.cgi Allow a few more hours for all mirrors to catch up. Gary Gregory on behalf of the Apache Commons community
Re: [VOTE][LAZY] Migrate Apache Commons Validator to git
+ Gary On Oct 21, 2017 02:22, "Benedikt Ritter" wrote: > Hello, > > I’d like to move Apache Commons Validator codebase to git, so I’m calling > a vote by lazy consensus. If nobody objects within the next 72 hours this > vote passes and I will start with the migration. > > This vote will be open until at least 24-October-2017, 10:30 CEST (UTC+2). > > Regards, > Benedikt > - > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > >
Re: [VOTE][LAZY] Migrate Apache Commons BCEL to git
+1 Gary On Oct 21, 2017 02:21, "Benedikt Ritter" wrote: Hello, I’d like to move Apache Commons BCEL codebase to git, so I’m calling a vote by lazy consensus. If nobody objects within the next 72 hours this vote passes and I will start with the migration. This vote will be open until at least 24-October-2017, 10:30 CEST (UTC+2). Regards, Benedikt - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [lang] [LANG-1360] Add methods to ObjectUtils to get various forms of class names in a null-safe manner
Hi guys, This patch break the CI on GitHub (the checkstyle check). It's pretty straight forward to fix [1], and if someone could merge it to unblock the CI, that would be great. TIA, Allon [1] https://github.com/apache/commons-lang/pull/302 On Sat, Oct 21, 2017 at 11:27 AM, Benedikt Ritter wrote: > Hello Gary, > > > Am 20.10.2017 um 21:19 schrieb ggreg...@apache.org: > > > > Repository: commons-lang > > Updated Branches: > > refs/heads/master 88654b79c -> 6ea2fc8d3 > > > > > > [LANG-1360] Add methods to ObjectUtils to get various forms of class > > names in a null-safe manner > > I think this belongs to ClassUtils. > > Regards, > Benedikt > > > > > Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo > > Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/ > 6ea2fc8d > > Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/6ea2fc8d > > Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/6ea2fc8d > > > > Branch: refs/heads/master > > Commit: 6ea2fc8d38e035bafaa92c7d3b007be38c2e9000 > > Parents: 88654b7 > > Author: Gary Gregory > > Authored: Fri Oct 20 13:19:56 2017 -0600 > > Committer: Gary Gregory > > Committed: Fri Oct 20 13:19:56 2017 -0600 > > > > -- > > src/changes/changes.xml | 1 + > > .../org/apache/commons/lang3/ObjectUtils.java | 32 +++ > > .../apache/commons/lang3/ObjectUtilsTest.java | 33 > > > 3 files changed, 66 insertions(+) > > -- > > > > > > http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ > 6ea2fc8d/src/changes/changes.xml > > -- > > diff --git a/src/changes/changes.xml b/src/changes/changes.xml > > index cf4296e..66dd510 100644 > > --- a/src/changes/changes.xml > > +++ b/src/changes/changes.xml > > @@ -53,6 +53,7 @@ The type attribute can be > add,update,fix,remove. > > ConstructorUtils.invokeConstructor(Class, Object...) > regression > > EqualsBuilder#isRegistered: swappedPair construction bug > > due-to="BruceKuiLiu">org.apache.commons.lang3.time.FastDateParser should > use toUpperCase(Locale) > > +Add methods to ObjectUtils to get various forms of class names in > a null-safe manner > > > > > > > > > > http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ > 6ea2fc8d/src/main/java/org/apache/commons/lang3/ObjectUtils.java > > -- > > diff --git a/src/main/java/org/apache/commons/lang3/ObjectUtils.java > b/src/main/java/org/apache/commons/lang3/ObjectUtils.java > > index 1ec0956..16a6b93 100644 > > --- a/src/main/java/org/apache/commons/lang3/ObjectUtils.java > > +++ b/src/main/java/org/apache/commons/lang3/ObjectUtils.java > > @@ -1033,4 +1033,36 @@ public class ObjectUtils { > > return v; > > } > > > > +/** > > + * Gets the class name of the given object. > > + * > > + * @param object the object to query, may be null > > + * @return the given object's class name or null if the object is > null > > + * @since 3.7 > > + */ > > +public static String getClassName(final Object object) { > > +return object == null ? null : object.getClass().getName(); > > +} > > + > > +/** > > + * Gets the class simple name of the given object. > > + * > > + * @param object the object to query, may be null > > + * @return the given object's class simple name or null if the > object is null > > + * @since 3.7 > > + */ > > +public static String getClassSimpleName(final Object object) { > > +return object == null ? null : object.getClass(). > getSimpleName(); > > +} > > + > > +/** > > + * Gets the class canonical name of the given object. > > + * > > + * @param object the object to query, may be null > > + * @return the given object's class canonical name or null if the > object is null > > + * @since 3.7 > > + */ > > +public static String getClassCanonicalName(final Object object) { > > +return object == null ? null : object.getClass(). > getCanonicalName(); > > +} > > } > > > > http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ > 6ea2fc8d/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > > -- > > diff --git a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > > index 3da8443..2bf036c 100644 > > --- a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > > +++ b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > > @@ -38,6 +38,7 @@ import java.util.List; > > import org.apache.commons.lang3.exception.CloneFailedException; > > import org.apache.commons.lang3.mutable.Mu
[LOGGING] Problems updating to lastest commons parent
Hi, when I update commons-logging to use Commons parent 42, I get build failures: ~/w/a/c/commons-logging > mvn clean verify [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Apache Commons Logging 1.2.1-SNAPSHOT [INFO] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 0.744 s [INFO] Finished at: 2017-10-21T10:30:12+02:00 [INFO] Final Memory: 12M/245M [INFO] [ERROR] Could not find goal 'parse-version' in plugin org.codehaus.mojo:build-helper-maven-plugin:1.0 among available goals add-source, add-test-source, attach-artifact -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException Any idea how to fix this? Regards, Benedikt - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [lang] [LANG-1360] Add methods to ObjectUtils to get various forms of class names in a null-safe manner
Hello Gary, > Am 20.10.2017 um 21:19 schrieb ggreg...@apache.org: > > Repository: commons-lang > Updated Branches: > refs/heads/master 88654b79c -> 6ea2fc8d3 > > > [LANG-1360] Add methods to ObjectUtils to get various forms of class > names in a null-safe manner I think this belongs to ClassUtils. Regards, Benedikt > > Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo > Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/6ea2fc8d > Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/6ea2fc8d > Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/6ea2fc8d > > Branch: refs/heads/master > Commit: 6ea2fc8d38e035bafaa92c7d3b007be38c2e9000 > Parents: 88654b7 > Author: Gary Gregory > Authored: Fri Oct 20 13:19:56 2017 -0600 > Committer: Gary Gregory > Committed: Fri Oct 20 13:19:56 2017 -0600 > > -- > src/changes/changes.xml | 1 + > .../org/apache/commons/lang3/ObjectUtils.java | 32 +++ > .../apache/commons/lang3/ObjectUtilsTest.java | 33 > 3 files changed, 66 insertions(+) > -- > > > http://git-wip-us.apache.org/repos/asf/commons-lang/blob/6ea2fc8d/src/changes/changes.xml > -- > diff --git a/src/changes/changes.xml b/src/changes/changes.xml > index cf4296e..66dd510 100644 > --- a/src/changes/changes.xml > +++ b/src/changes/changes.xml > @@ -53,6 +53,7 @@ The type attribute can be add,update,fix,remove. > ConstructorUtils.invokeConstructor(Class, Object...) regression > EqualsBuilder#isRegistered: swappedPair construction bug > due-to="BruceKuiLiu">org.apache.commons.lang3.time.FastDateParser should use > toUpperCase(Locale) > +Add methods to ObjectUtils to get various forms of class names in a > null-safe manner > > > > > http://git-wip-us.apache.org/repos/asf/commons-lang/blob/6ea2fc8d/src/main/java/org/apache/commons/lang3/ObjectUtils.java > -- > diff --git a/src/main/java/org/apache/commons/lang3/ObjectUtils.java > b/src/main/java/org/apache/commons/lang3/ObjectUtils.java > index 1ec0956..16a6b93 100644 > --- a/src/main/java/org/apache/commons/lang3/ObjectUtils.java > +++ b/src/main/java/org/apache/commons/lang3/ObjectUtils.java > @@ -1033,4 +1033,36 @@ public class ObjectUtils { > return v; > } > > +/** > + * Gets the class name of the given object. > + * > + * @param object the object to query, may be null > + * @return the given object's class name or null if the object is null > + * @since 3.7 > + */ > +public static String getClassName(final Object object) { > +return object == null ? null : object.getClass().getName(); > +} > + > +/** > + * Gets the class simple name of the given object. > + * > + * @param object the object to query, may be null > + * @return the given object's class simple name or null if the object is > null > + * @since 3.7 > + */ > +public static String getClassSimpleName(final Object object) { > +return object == null ? null : object.getClass().getSimpleName(); > +} > + > +/** > + * Gets the class canonical name of the given object. > + * > + * @param object the object to query, may be null > + * @return the given object's class canonical name or null if the object > is null > + * @since 3.7 > + */ > +public static String getClassCanonicalName(final Object object) { > +return object == null ? null : object.getClass().getCanonicalName(); > +} > } > > http://git-wip-us.apache.org/repos/asf/commons-lang/blob/6ea2fc8d/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > -- > diff --git a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > index 3da8443..2bf036c 100644 > --- a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > +++ b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java > @@ -38,6 +38,7 @@ import java.util.List; > import org.apache.commons.lang3.exception.CloneFailedException; > import org.apache.commons.lang3.mutable.MutableObject; > import org.apache.commons.lang3.text.StrBuilder; > +import org.junit.Assert; > import org.junit.Test; > > /** > @@ -666,4 +667,36 @@ public class ObjectUtilsTest { > } > > } > + > +/** > + * @since 3.7 > + */ > +@Test > +public void testGetClassName() { > +Assert.assertNull(ObjectUtils.getClassName(null)); > +Assert.assertEquals("java.lang.String", ObjectUtils.getClassName(new > String())); > + > Assert.assertEquals("org.apache.commons.lang3.O
Re: [codec] Update for Java 7
Go for it. > Am 21.10.2017 um 01:26 schrieb Gary Gregory : > > Now that Codec 1.11 is out, I propose we update from Java 6 to 7. > > Gary - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
[VOTE][LAZY] Migrate Apache Commons Validator to git
Hello, I’d like to move Apache Commons Validator codebase to git, so I’m calling a vote by lazy consensus. If nobody objects within the next 72 hours this vote passes and I will start with the migration. This vote will be open until at least 24-October-2017, 10:30 CEST (UTC+2). Regards, Benedikt - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
[VOTE][LAZY] Migrate Apache Commons BCEL to git
Hello, I’d like to move Apache Commons BCEL codebase to git, so I’m calling a vote by lazy consensus. If nobody objects within the next 72 hours this vote passes and I will start with the migration. This vote will be open until at least 24-October-2017, 10:30 CEST (UTC+2). Regards, Benedikt - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org