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 2018/12/25 22:55:36 UTC
[myfaces] branch master updated: [perf] optimize TagAttributesImpl
access
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 58071ee [perf] optimize TagAttributesImpl access
58071ee is described below
commit 58071ee9262442148b9d512c6758f2b822907fa4
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Tue Dec 25 23:55:48 2018 +0100
[perf] optimize TagAttributesImpl access
---
.../java/org/apache/myfaces/view/facelets/tag/TagAttributesImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/TagAttributesImpl.java b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/TagAttributesImpl.java
index dcdf070..a6bcc9d 100644
--- a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/TagAttributesImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/TagAttributesImpl.java
@@ -49,8 +49,8 @@ public final class TagAttributesImpl extends TagAttributes
public TagAttributesImpl(TagAttribute[] attributes)
{
this.attributes = attributes;
- this.namespaceAttributes = new HashMap<>(3);
- this.namespaceLocalNameAttributes = new HashMap<>(3);
+ this.namespaceAttributes = new HashMap<>(1);
+ this.namespaceLocalNameAttributes = new HashMap<>(1);
Set<String> namespacesSet = new HashSet<>();
HashMap<String, List<TagAttribute>> namespaceAttributesAsList = new HashMap<>();