commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-1401) Typo in Java doc for lastIndexOf
Date Fri, 06 Jul 2018 07:06:00 GMT

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

Alex updated LANG-1401:
-----------------------
    Description: 
Typo in Java doc for lastIndexOf.

You could check on following page:

[https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#lastIndexOf-java.lang.CharSequence-java.lang.CharSequence-int-]

In example of execution two last row have same arguments but result differ:

StringUtils.lastIndexOf("aabaabaa", "ba", 2) = -1

StringUtils.lastIndexOf("aabaabaa", "ba", 2) = 2

 

Thank

 

  was:
Typo in Java doc for lastIndexOf.

You could check on following page:

[https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#lastIndexOf-java.lang.CharSequence-java.lang.CharSequence-int-]

In example of execution two last row :

StringUtils.lastIndexOf("aabaabaa", "ba", 2) = -1 StringUtils.lastIndexOf("aabaabaa", "ba",
2) = 2

 

 


> Typo in Java doc for lastIndexOf
> --------------------------------
>
>                 Key: LANG-1401
>                 URL: https://issues.apache.org/jira/browse/LANG-1401
>             Project: Commons Lang
>          Issue Type: Bug
>            Reporter: Alex
>            Priority: Major
>
> Typo in Java doc for lastIndexOf.
> You could check on following page:
> [https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#lastIndexOf-java.lang.CharSequence-java.lang.CharSequence-int-]
> In example of execution two last row have same arguments but result differ:
> StringUtils.lastIndexOf("aabaabaa", "ba", 2) = -1
> StringUtils.lastIndexOf("aabaabaa", "ba", 2) = 2
>  
> Thank
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message