[jira] [Commented] (OFBIZ-10632) ‘String#toLowercase()’ and ‘String#toUppercase()’ should be used when possible

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-10632) ‘String#toLowercase()’ and ‘String#toUppercase()’ should be used when possible

Nicolas Malin (Jira)

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

Mathieu Lirzin commented on OFBIZ-10632:
----------------------------------------

I have included  [^OFBIZ-10632_Use-String-toLowercase-and-String-toUppercase-when-p.patch]  which replaces all occurrences of {{toLowerCase(Locale.getDefault())}} with {{toLowerCase()}} and all occurrences of {{toUpperCase(Locale.getDefault())}} with {{toUpperCase()}}.

> ‘String#toLowercase()’ and ‘String#toUppercase()’ should be used when possible
> ------------------------------------------------------------------------------
>
>                 Key: OFBIZ-10632
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10632
>             Project: OFBiz
>          Issue Type: Improvement
>    Affects Versions: Trunk
>            Reporter: Mathieu Lirzin
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>         Attachments: OFBIZ-10632_Use-String-toLowercase-and-String-toUppercase-when-p.patch
>
>
> Usage of {{"foo".toLowercase()}} should be preferred to
> {{"foo".toLowercase(Locale.getDefault())}} which is equivalent but more verbose.



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