You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/06/06 04:34:00 UTC

[jira] [Commented] (OFBIZ-11778) Enforce noninstantiability to GroovyUtil Class

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

ASF subversion and git services commented on OFBIZ-11778:
---------------------------------------------------------

Commit 846e5f0dedcb4a723b0d0e37b1bf2d9102fcb0b3 in ofbiz-framework's branch refs/heads/trunk from Suraj Khurana
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=846e5f0 ]

Improved: Enforce noninstantiability to GroovyUtil Class. (#180)

(OFBIZ-11778)

Made class as final, moved default constructor and renamed private data members as per naming convention best practices.

> 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
>            Priority: Major
>
> - 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)