[
https://issues.apache.org/jira/browse/LANG-1535?focusedWorklogId=424870&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-424870
]
ASF GitHub Bot logged work on LANG-1535:
----------------------------------------
Author: ASF GitHub Bot
Created on: 18/Apr/20 12:08
Start Date: 18/Apr/20 12:08
Worklog Time Spent: 10m
Work Description: Isira-Seneviratne commented on pull request #510:
[LANG-1535] Add containsAnyIgnoreCase() method to StringUtils.
URL: https://github.com/apache/commons-lang/pull/510#discussion_r410689512
##########
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:
Okay, I'll remove them.
----------------------------------------------------------------
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: 424870)
Time Spent: 0.5h (was: 20m)
> 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: 0.5h
> 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)