[jira] [Assigned] (OFBIZ-7803) Enforce noninstantiability to UtilMisc class

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

[jira] [Assigned] (OFBIZ-7803) Enforce noninstantiability to UtilMisc class

Nicolas Malin (Jira)

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

Rohit Koushal reassigned OFBIZ-7803:
------------------------------------

    Assignee: Rohit Koushal

> Enforce noninstantiability to UtilMisc class
> --------------------------------------------
>
>                 Key: OFBIZ-7803
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7803
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Rishi Solanki
>            Assignee: Rohit Koushal
>            Priority: Minor
>
> - Make class as final.
> - Private constructor already exists, by making it final we just matching the patterns from other utility classes.
> - Make following public static final variables as private;
> {code}
>     public static final BigDecimal ZERO_BD = BigDecimal.ZERO;
> {code}
> - Nothing needs to be change for the private static class as it follows all patterns;
> {code}
>     // Private lazy-initializer class
>     private static class LocaleHolder
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)