[
https://issues.apache.org/jira/browse/LANG-1609?focusedWorklogId=504789&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-504789
]
ASF GitHub Bot logged work on LANG-1609:
----------------------------------------
Author: ASF GitHub Bot
Created on: 26/Oct/20 16:14
Start Date: 26/Oct/20 16:14
Worklog Time Spent: 10m
Work Description: HubertWo commented on a change in pull request #630:
URL: https://github.com/apache/commons-lang/pull/630#discussion_r512085862
##########
File path: src/main/java/org/apache/commons/lang3/StringUtils.java
##########
@@ -8101,17 +8131,47 @@ private static boolean startsWith(final CharSequence
str, final CharSequence pre
* @since 3.0 Changed signature from startsWithAny(String, String[]) to
startsWithAny(CharSequence, CharSequence...)
*/
public static boolean startsWithAny(final CharSequence sequence, final
CharSequence... searchStrings) {
+ return startsWithAny(sequence, searchStrings, false);
+ }
+
+ private static boolean startsWithAny(final CharSequence sequence, final
CharSequence[] searchStrings,
+ boolean ignoreCase) {
Review comment:
Please declare ```ignoreCase``` argument as ```final```
----------------------------------------------------------------
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: 504789)
Time Spent: 40m (was: 0.5h)
> Case-insensitive variants for startsWithAny and endsWithAny
> -----------------------------------------------------------
>
> Key: LANG-1609
> URL: https://issues.apache.org/jira/browse/LANG-1609
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Edgar Asatryan
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Add methods to StringUtils class
> * *StringUtils::startsWithAnyIgnoreCase(CharSequence, CharSequence...)*
> * *StringUtils::endsWithAnyIgnoreCase(CharSequence, CharSequence...)*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)