[ 
https://issues.apache.org/jira/browse/LANG-1535?focusedWorklogId=424864&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-424864
 ]

ASF GitHub Bot logged work on LANG-1535:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Apr/20 11:37
            Start Date: 18/Apr/20 11:37
    Worklog Time Spent: 10m 
      Work Description: namannigam commented on pull request #510: [LANG-1535] 
Add containsAnyIgnoreCase() method to StringUtils.
URL: https://github.com/apache/commons-lang/pull/510#discussion_r410686757
 
 

 ##########
 File path: src/test/java/org/apache/commons/lang3/StringUtilsContainsTest.java
 ##########
 @@ -292,6 +292,28 @@ public void testContainsIgnoreCase_StringString() {
         assertTrue(StringUtils.containsIgnoreCase("xabcz", "ABC"));
     }
 
+    @Test
+    public void testContainsAnyIgnoreCase_StringStringArray() {
+        assertFalse(StringUtils.containsAnyIgnoreCase(null, (String[]) null));
+        assertFalse(StringUtils.containsAnyIgnoreCase(null, new String[0]));
+        assertFalse(StringUtils.containsAnyIgnoreCase(null, new String[] { 
"hello" }));
 
 Review comment:
   these would short-circuit at the same condition as with the assertion before 
these and hence might just be redundant
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 424864)
    Time Spent: 20m  (was: 10m)

> Add containsAnyIgnoreCase() function to StringUtils.
> ----------------------------------------------------
>
>                 Key: LANG-1535
>                 URL: https://issues.apache.org/jira/browse/LANG-1535
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: Isira Seneviratne
>            Priority: Major
>             Fix For: 3.10.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Add a containsAnyIgnoreCase() static function to StringUtils that checks 
> whether the provided CharSequence contains one or more of the CharSequences 
> to be found, regardless of case.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to