You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Arun Patidar (JIRA)" <ji...@apache.org> on 2016/08/05 15:41:20 UTC

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

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

Arun Patidar closed OFBIZ-7810.
-------------------------------
       Resolution: Fixed
    Fix Version/s: Upcoming Branch

Committed changes in trunk at rev: 1755348.

Thanks [~rishisolankii] and [~rohit.koushal] for your contribution.

> 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
>             Fix For: Upcoming Branch
>
>         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)