You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2020/03/02 13:12:58 UTC
[myfaces] branch master updated: cosmetics
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 bccb6f1 cosmetics
bccb6f1 is described below
commit bccb6f1077ca738455d23145644dddf2396d7ba7
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Mon Mar 2 14:12:51 2020 +0100
cosmetics
---
.../org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java | 4 ++--
.../org/apache/myfaces/view/facelets/tag/MetaRulesetImpl.java | 8 ++++----
.../org/apache/myfaces/view/facelets/tag/TagHandlerUtils.java | 1 +
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java
index 1368511..a101300 100644
--- a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java
+++ b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/AbstractTagLibrary.java
@@ -67,8 +67,8 @@ public abstract class AbstractTagLibrary implements TagLibrary
{
_namespace = namespace;
_aliasNamespace = aliasNamespace;
- _factories = new HashMap<String, TagHandlerFactory>();
- _functions = new HashMap<String, Method>();
+ _factories = new HashMap<>();
+ _functions = new HashMap<>();
}
public AbstractTagLibrary(String namespace)
diff --git a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/MetaRulesetImpl.java b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/MetaRulesetImpl.java
index f61b9f9..5405b39 100644
--- a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/MetaRulesetImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/MetaRulesetImpl.java
@@ -107,12 +107,12 @@ public final class MetaRulesetImpl extends MetaRuleset
// the properties with alias are very few, so set an initial size close to
// the number of attributes is ok.
int initialSize = allAttributes.length > 0 ? (allAttributes.length * 4 + 3) / 3 : 4;
- _attributes = new HashMap<String, TagAttribute>(initialSize);
- _mappers = new ArrayList<Metadata>(initialSize);
+ _attributes = new HashMap<>(initialSize);
+ _mappers = new ArrayList<>(initialSize);
// Usually ComponentTagHandlerDelegate has 5 rules at max
// and CompositeComponentResourceTagHandler 6, so 8 is a good number
- _rules = new ArrayList<MetaRule>(8);
- _passthroughRules = new ArrayList<MetaRule>(2);
+ _rules = new ArrayList<>(8);
+ _passthroughRules = new ArrayList<>(2);
// Passthrough attributes are different from normal attributes, because they
// are just rendered into the markup without additional processing from the
diff --git a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/TagHandlerUtils.java b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/TagHandlerUtils.java
index 16b0e61..f0fdc35 100644
--- a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/TagHandlerUtils.java
+++ b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/TagHandlerUtils.java
@@ -68,6 +68,7 @@ public final class TagHandlerUtils
* From TagHandler:
* protected final <T> Iterator<T> findNextByType(Class<T> type)
*
+ * @param nextHandler
* @param type
* @return
*/