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: cosmetics
Date Mon, 10 Dec 2018 16:34:14 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 ed9bd5d  cosmetics
ed9bd5d is described below

commit ed9bd5ddacd0c0031a3aea5b11e2d5c891f11ff1
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Mon Dec 10 17:34:00 2018 +0100

    cosmetics
---
 .../org/apache/myfaces/application/ResourceHandlerImpl.java    | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/application/ResourceHandlerImpl.java b/impl/src/main/java/org/apache/myfaces/application/ResourceHandlerImpl.java
index 35a899f..b2d082c 100644
--- a/impl/src/main/java/org/apache/myfaces/application/ResourceHandlerImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/application/ResourceHandlerImpl.java
@@ -1316,7 +1316,7 @@ public class ResourceHandlerImpl extends ResourceHandler
         {
             resourceMeta = null;
         }
-        //}
+
         return resourceMeta;
     }
     
@@ -1743,6 +1743,7 @@ public class ResourceHandlerImpl extends ResourceHandler
         return resource;
     }
 
+    @Override
     public Stream<java.lang.String> getViewResources(FacesContext facesContext, 
             String path, int maxDepth, ResourceVisitOption... options)   
     {
@@ -1762,9 +1763,9 @@ public class ResourceHandlerImpl extends ResourceHandler
         return StreamSupport.stream(Spliterators.spliteratorUnknownSize(it,Spliterator.DISTINCT),
false);
     }
     
-    private Set<String> loadSuffixes (ExternalContext context)
+    private Set<String> loadSuffixes(ExternalContext context)
     {
-        Set<String> result = new HashSet<String>();
+        Set<String> result = new HashSet<>();
         String definedSuffixes = WebConfigParamUtils.getStringInitParameter(context, 
                 ViewHandler.DEFAULT_SUFFIX_PARAM_NAME, ViewHandler.DEFAULT_SUFFIX);
         StringTokenizer tokenizer;
@@ -1860,6 +1861,7 @@ public class ResourceHandlerImpl extends ResourceHandler
      * @param libraryName
      * @return 
      */
+    @Override
     public boolean isResourceRendered(FacesContext facesContext, String resourceName, String
libraryName)
     {
         return getRenderedResources(facesContext).containsKey(
@@ -1898,7 +1900,7 @@ public class ResourceHandlerImpl extends ResourceHandler
                 .getTransient(RENDERED_RESOURCES_SET);
         if (map == null)
         {
-            map = new HashMap<String, Boolean>();
+            map = new HashMap<>();
             facesContext.getViewRoot().getTransientStateHelper().putTransient(RENDERED_RESOURCES_SET,map);
         }
         return map;


Mime
View raw message