commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duncan Jones (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-901) endsWithAny is case sensitive - documented as case insensitive
Date Tue, 18 Feb 2014 20:32:23 GMT

    [ https://issues.apache.org/jira/browse/LANG-901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13904549#comment-13904549
] 

Duncan Jones commented on LANG-901:
-----------------------------------

I would be in favour of an IAE as [~sebb@apache.org] suggests. One cannot reason sensibly
about {{null}} values as though they are strings. Returning {{true}} or {{false}} would be
arbitrary.

> endsWithAny is case sensitive - documented as case insensitive
> --------------------------------------------------------------
>
>                 Key: LANG-901
>                 URL: https://issues.apache.org/jira/browse/LANG-901
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 3.1
>            Reporter: Matthew Bartenschlag
>            Priority: Minor
>             Fix For: Review Patch, Discussion
>
>         Attachments: LANG-901-StringUtils-StartsWithAnyEndsWithAny.patch
>
>
> endsWithAny was added in response to this task: LANG-614
> Documentation says that the method returns "true if the CharSequence starts with any
of the the prefixes, case insensitive, or both null" 
> StringUtils.endsWithAny("MIME/TYPE", "TYPE") true
> StringUtils.endsWithAny("MIME/TYPE", "type") false



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message