[jira] [Created] (OFBIZ-11778) Enforce noninstantiability to GroovyUtil 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-11778) Enforce noninstantiability to GroovyUtil Class

Nicolas Malin (Jira)
Suraj Khurana created OFBIZ-11778:
-------------------------------------

             Summary: Enforce noninstantiability to GroovyUtil Class
                 Key: OFBIZ-11778
                 URL: https://issues.apache.org/jira/browse/OFBIZ-11778
             Project: OFBiz
          Issue Type: Sub-task
          Components: framework
    Affects Versions: Trunk
            Reporter: Suraj Khurana
            Assignee: Suraj Khurana


- Make GroovyUtil class as final.
 - Move private constructor to proper location
 - Make the following public static variable as private.
{code:java}
public static final UtilCache<String, Class<?>> PARSED_SCRIPTS = UtilCache.createUtilCache("script.GroovyLocationParsedCache", 0, 0, false);
public static final GroovyClassLoader GROOVY_CLASS_LOADER;{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)