[jira] [Commented] (OFBIZ-7692) Enforce noninstantiability to AuthHelper class

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

[jira] [Commented] (OFBIZ-7692) Enforce noninstantiability to AuthHelper class

Nicolas Malin (Jira)

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

Rahul Singh commented on OFBIZ-7692:
------------------------------------

Added the patch to fix this issue. Thanks, [~rishisolankii] for the detailed description.

> Enforce noninstantiability to AuthHelper class
> ----------------------------------------------
>
>                 Key: OFBIZ-7692
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7692
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Rishi Solanki
>            Priority: Minor
>         Attachments: OFBIZ-7692.patch
>
>
> - Make class as final.
> - Add a private constructor.
> - Make the following protected static variables as private
> {code}
>     protected static List<Authenticator> authenticators = new ArrayList<Authenticator>();
>     protected static boolean authenticatorsLoaded = false;
> {code}



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