[
https://issues.apache.org/jira/browse/OFBIZ-7803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rohit Koushal updated OFBIZ-7803:
---------------------------------
Attachment: OFBIZ-7803.patch
Added the patch to fix this issue. Thanks, Rishi Solanki for the detailed description.
> 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
> Attachments: OFBIZ-7803.patch
>
>
> - 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)