ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradhan Yash Sharma (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (OFBIZ-9488) Usage of factory method or Builder pattern for Locale object creation and usage.
Date Sat, 22 Jul 2017 09:23:02 GMT

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

Pradhan Yash Sharma edited comment on OFBIZ-9488 at 7/22/17 9:22 AM:
---------------------------------------------------------------------

Patch Available


was (Author: pradhanyashsharma):
Patch Avaliable

> Usage of factory method or Builder pattern for Locale object creation and usage.
> --------------------------------------------------------------------------------
>
>                 Key: OFBIZ-9488
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9488
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL APPLICATIONS
>    Affects Versions: 16.11.03
>            Reporter: Pradhan Yash Sharma
>            Assignee: Pradhan Yash Sharma
>            Priority: Minor
>         Attachments: OFBIZ-9488.patch
>
>
> Usage of factory method or Builder pattern for Locale object creation and usage.
> Locale aLocale = Locale.forLanguageTag("en-US");
> Locale bLocale = new Locale.Builder().setLanguage("en").setRegion("US").build();
> https://docs.oracle.com/javase/tutorial/i18n/locale/index.html
> There are many instances on which new Locale() is used instead of this we can use UtilMisc.ensureLocale()



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message