You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2018/01/12 16:59:58 UTC

[2/2] [lang] LANG-1352: EnumUtils.getEnumIgnoreCase and isValidEnumIgnoreCase methods added

LANG-1352: EnumUtils.getEnumIgnoreCase and isValidEnumIgnoreCase methods added

add since javadoc tags and changes.xml entry


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

Branch: refs/heads/master
Commit: 63f11e9dc1874abdde1bfe1d900b5ebfa4d3a941
Parents: 0b70b01
Author: pascalschumacher <pa...@gmx.net>
Authored: Fri Jan 12 17:56:59 2018 +0100
Committer: pascalschumacher <pa...@gmx.net>
Committed: Fri Jan 12 17:59:09 2018 +0100

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


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/63f11e9d/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index a5e4301..bf9f499 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -50,6 +50,7 @@ The <action> type attribute can be add,update,fix,remove.
     <action issue="LANG-1371" type="fix" dev="pschumacher" due-to="Dmitry Ovchinnikov">Fix TypeUtils#parameterize to work correctly with narrower-typed array</action>
     <action issue="LANG-1370" type="fix" dev="kinow" due-to="Andre Dieb">Fix EventCountCircuitBreaker increment batch</action>
     <action issue="LANG-1367" type="update" dev="ggregory" due-to="Gary Gregory">ObjectUtils.identityToString(Object) and friends should allocate builders and buffers with a size</action>
+    <action issue="LANG-1352" type="add" dev="pschumacher" due-to="Ruslan Sibgatullin">EnumUtils.getEnumIgnoreCase and isValidEnumIgnoreCase methods added</action>
   </release>
 
   <release version="3.7" date="2017-11-04" description="New features and bug fixes. Requires Java 7, supports Java 8, 9, 10.">

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/63f11e9d/src/main/java/org/apache/commons/lang3/EnumUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/EnumUtils.java b/src/main/java/org/apache/commons/lang3/EnumUtils.java
index 5aa7668..0ebca28 100644
--- a/src/main/java/org/apache/commons/lang3/EnumUtils.java
+++ b/src/main/java/org/apache/commons/lang3/EnumUtils.java
@@ -101,6 +101,7 @@ public class EnumUtils {
      * @param enumClass  the class of the enum to query, not null
      * @param enumName   the enum name, null returns false
      * @return true if the enum name is valid, otherwise false
+     * @since 3.8
      */
     public static <E extends Enum<E>> boolean isValidEnumIgnoreCase(final Class<E> enumClass, final String enumName) {
         return getEnumIgnoreCase(enumClass, enumName) != null;
@@ -138,6 +139,7 @@ public class EnumUtils {
      * @param enumClass   the class of the enum to query, not null
      * @param enumName    the enum name, null returns null
      * @return the enum, null if not found
+     * @since 3.8
      */
     public static <E extends Enum<E>> E getEnumIgnoreCase(final Class<E> enumClass, final String enumName) {
         if (enumName == null || !enumClass.isEnum()) {