[jira] [Assigned] (OFBIZ-7810) Enforce noninstantiability to UelUtil class

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

[jira] [Assigned] (OFBIZ-7810) Enforce noninstantiability to UelUtil class

Nicolas Malin (Jira)

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

Arun Patidar reassigned OFBIZ-7810:
-----------------------------------

    Assignee: Arun Patidar  (was: Rohit Koushal)

> Enforce noninstantiability to UelUtil class
> -------------------------------------------
>
>                 Key: OFBIZ-7810
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7810
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Arun Patidar
>            Assignee: Arun Patidar
>            Priority: Minor
>         Attachments: OFBIZ-7810.patch
>
>
> - Make class as final.
> - Add a private constructor.
> - Make following protected variable as private
> {code}
>     protected static final ExpressionFactory exprFactory = JuelConnector.newExpressionFactory();
>     protected static final ELResolver defaultResolver = new ExtendedCompositeResolver()
> {code}
> - Make following protected classes as private and do related changes for variables in them;
> {code}
>     protected static class BasicContext extends ELContext
>     protected static class ReadOnlyContext extends ELContext
>        protected static class ReadOnlyVariableMapper extends VariableMapper
>     protected static class BasicVariableMapper extends VariableMapper
>     protected static class ReadOnlyExpression extends ValueExpression
>     protected static class BasicValueExpression extends ValueExpression
>     protected static class ExtendedCompositeResolver extends CompositeELResolver
>     protected static class ExtendedListResolver extends ListELResolver
>     protected static class ExtendedMapResolver extends MapELResolver
> {code}



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