[jira] [Created] (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] [Created] (OFBIZ-7803) Enforce noninstantiability to UtilMisc class

Nicolas Malin (Jira)
Rishi Solanki created OFBIZ-7803:
------------------------------------

             Summary: 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
            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)