myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch master updated: refactored
Date Mon, 14 Oct 2019 11:50:46 GMT
This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/master by this push:
     new 42a698a  refactored
42a698a is described below

commit 42a698a1757d9b6676ef2262cab5d82e104beafe
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Mon Oct 14 13:50:38 2019 +0200

    refactored
---
 .../src/main/java/org/apache/myfaces/el/ELResolverBuilderForJSP.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/el/ELResolverBuilderForJSP.java b/impl/src/main/java/org/apache/myfaces/el/ELResolverBuilderForJSP.java
index c101434..1f2b7ed 100644
--- a/impl/src/main/java/org/apache/myfaces/el/ELResolverBuilderForJSP.java
+++ b/impl/src/main/java/org/apache/myfaces/el/ELResolverBuilderForJSP.java
@@ -52,13 +52,12 @@ public class ELResolverBuilderForJSP extends ELResolverBuilder
     public void build(FacesContext facesContext, CompositeELResolver compositeElResolver)
     {
         // add the ELResolvers to a List first to be able to sort them
-        List<ELResolver> list = new ArrayList<ELResolver>();
+        List<ELResolver> list = new ArrayList<>();
         
         if (isReplaceImplicitObjectResolverWithCDIResolver(facesContext))
         {
             //Add CDI ELResolver instead.
-            BeanManager beanManager = CDIUtils.getBeanManager(
-                    FacesContext.getCurrentInstance().getExternalContext());
+            BeanManager beanManager = CDIUtils.getBeanManager(facesContext.getExternalContext());
             list.add(beanManager.getELResolver());
         }
         else


Mime
View raw message