commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anish K George (JIRA)" <j...@apache.org>
Subject [jira] Created: (LANG-557) Javadoc wrong for StringUtils startsWith, startsWithIgnoreCase, endsWith and endsWithIgnoreCase
Date Sun, 22 Nov 2009 12:00:40 GMT
Javadoc wrong for StringUtils startsWith, startsWithIgnoreCase, endsWith and endsWithIgnoreCase
-----------------------------------------------------------------------------------------------

                 Key: LANG-557
                 URL: https://issues.apache.org/jira/browse/LANG-557
             Project: Commons Lang
          Issue Type: Bug
    Affects Versions: 2.4
         Environment: http://commons.apache.org/lang//api/org/apache/commons/lang/StringUtils.html
            Reporter: Anish K George


In the examples given along with the descriptions of startsWith, startsWithIgnoreCase, endsWith
and endsWithIgnoreCase of StringUtils class, the full string and the suffix/prefix are used
in the wrong order.

eg: 

It is mentioned that StringUtils.startsWith("abc", "abcdef") = true
It should be StringUtils.startsWith("abcdef", "abc") = true


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message