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/04/15 21:42:22 UTC

[GitHub] [commons-lang] RatishBansal commented on issue #508: LANG-1481 Add StringUtils.split() methods with String[] input.

RatishBansal commented on issue #508: LANG-1481 Add StringUtils.split() methods with String[] input.
URL: https://github.com/apache/commons-lang/pull/508#issuecomment-614294896
 
 
   > @RatishBansal I have just one small doubt, how do you plan to cover these cases mentioned [here](https://issues.apache.org/jira/browse/LANG-1481).
   > 
   > ```java
   > StringUtils.split(["a.b"],["c"], '.')     = ["a", "b", "c"]
   > StringUtils.split(["a"],["b"],["c"], '.') = ["a", "b", "c"]
   > ```
   
   @amarlearning as I mentioned in the [comment](https://issues.apache.org/jira/browse/LANG-1481?focusedCommentId=17078554&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17078554) as well, my understanding of the requirement is to write split method with String[] as input. I don't think the method should have varargs String[]. My understanding might be wrong, but I think the extra square brackets might be a mistake. I think @garydgregory would be the right person to clear the requirement.

----------------------------------------------------------------
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


With regards,
Apache Git Services