You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Timing (Jira)" <ji...@apache.org> on 2021/12/03 14:29:00 UTC

[jira] [Resolved] (LANG-1678) StringUtils.split not return as expected

     [ https://issues.apache.org/jira/browse/LANG-1678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timing resolved LANG-1678.
--------------------------
    Resolution: Won't Fix

> StringUtils.split not return as expected
> ----------------------------------------
>
>                 Key: LANG-1678
>                 URL: https://issues.apache.org/jira/browse/LANG-1678
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.12.0
>         Environment: JDK17
>            Reporter: Timing
>            Priority: Minor
>
> When I write this code:
> {code:java}
> class Solution{
>   public static void main(String[] args) {
>      String code = "constant_true";
>      System.out.println(StringUtils.split(code,"constant_")[0]);
>   }
> }{code}
> I hope it retrun “true".
> But it return “rue”.
> Is it a bug? Should I try to fix it?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)