You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2020/10/26 16:14:37 UTC

[GitHub] [commons-lang] HubertWo commented on a change in pull request #630: [LANG-1609] Case-insensitive variants for startsWithAny and endsWithAny.

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:
users@infra.apache.org