You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Neifeld (JIRA)" <ji...@apache.org> on 2011/03/02 09:37:36 UTC

[jira] Created: (LANG-679) StringUtils.startsWithIgnoreCase whrong documentation

StringUtils.startsWithIgnoreCase whrong documentation
-----------------------------------------------------

                 Key: LANG-679
                 URL: https://issues.apache.org/jira/browse/LANG-679
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.*
    Affects Versions: 2.4
            Reporter: Michael Neifeld


Examples within JavaDoc misleads about parameters - according to examples the string and the prefix misplaced.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (LANG-679) StringUtils.startsWithIgnoreCase whrong documentation

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton resolved LANG-679.
----------------------------------

    Resolution: Duplicate

Duplicates LANG-460 fixed in Lang 2.5

> StringUtils.startsWithIgnoreCase whrong documentation
> -----------------------------------------------------
>
>                 Key: LANG-679
>                 URL: https://issues.apache.org/jira/browse/LANG-679
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 2.4
>            Reporter: Michael Neifeld
>
> Examples within JavaDoc misleads about parameters - according to examples the string and the prefix misplaced.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (LANG-679) StringUtils.startsWithIgnoreCase whrong documentation

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001858#comment-13001858 ] 

Henri Yandell commented on LANG-679:
------------------------------------

Do you mean these examples?

 StringUtils.startsWithIgnoreCase(null, null)      = true
 StringUtils.startsWithIgnoreCase(null, "abc")     = false
 StringUtils.startsWithIgnoreCase("abcdef", null)  = false
 StringUtils.startsWithIgnoreCase("abcdef", "abc") = true
 StringUtils.startsWithIgnoreCase("ABCDEF", "abc") = true

If so, what's wrong with them?

> StringUtils.startsWithIgnoreCase whrong documentation
> -----------------------------------------------------
>
>                 Key: LANG-679
>                 URL: https://issues.apache.org/jira/browse/LANG-679
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 2.4
>            Reporter: Michael Neifeld
>
> Examples within JavaDoc misleads about parameters - according to examples the string and the prefix misplaced.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (LANG-679) StringUtils.startsWithIgnoreCase whrong documentation

Posted by "Michael Neifeld (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002024#comment-13002024 ] 

Michael Neifeld commented on LANG-679:
--------------------------------------

No, I'm meaning these:

StringUtils.startsWithIgnoreCase(null, null)      = true
StringUtils.startsWithIgnoreCase(null, "abcdef")  = false
StringUtils.startsWithIgnoreCase("abc", null)     = false
StringUtils.startsWithIgnoreCase("abc", "abcdef") = true
StringUtils.startsWithIgnoreCase("abc", "ABCDEF") = true

That can be found in version 2.4
As I understand this is fixed in more recent version, so it's can be closed ?

> StringUtils.startsWithIgnoreCase whrong documentation
> -----------------------------------------------------
>
>                 Key: LANG-679
>                 URL: https://issues.apache.org/jira/browse/LANG-679
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 2.4
>            Reporter: Michael Neifeld
>
> Examples within JavaDoc misleads about parameters - according to examples the string and the prefix misplaced.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira