[jira] [Updated] (OFBIZ-7686) Enforce noninstantiability to EntityEcaUtil class

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

[jira] [Updated] (OFBIZ-7686) Enforce noninstantiability to EntityEcaUtil class

Nicolas Malin (Jira)

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

Pratik Kulshreshth updated OFBIZ-7686:
--------------------------------------
    Attachment: OFBIZ-7686.patch

Provided patch for this issue
Thanks [~rishisolankii] for description and guidance.

> Enforce noninstantiability to EntityEcaUtil class
> -------------------------------------------------
>
>                 Key: OFBIZ-7686
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7686
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Rishi Solanki
>            Priority: Minor
>         Attachments: OFBIZ-7686.patch
>
>
> - Make class as final.
> - Add a private constructor.
> - Make the following protected static methods as private
> {code}
>     protected static Callable<List<EntityEcaRule>> createEcaLoaderCallable(final ResourceHandler handler)
>     protected static void readConfig(String entityEcaReaderName, Map<String, Map<String, List<EntityEcaRule>>> ecaCache)
> {code}
> No variables needs to be change for this class.



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