jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1766398 - /jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeRegistryImpl.java
Date Mon, 24 Oct 2016 12:11:56 GMT
Author: reschke
Date: Mon Oct 24 12:11:56 2016
New Revision: 1766398

URL: http://svn.apache.org/viewvc?rev=1766398&view=rev
Log:
JCR-4047: NodeTypeRegistryImpl - work around (correct) animal sniffer diagnostics by not using
ConcurrentHashMap as it's not needed here anyway

Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeRegistryImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeRegistryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeRegistryImpl.java?rev=1766398&r1=1766397&r2=1766398&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeRegistryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeRegistryImpl.java
Mon Oct 24 12:11:56 2016
@@ -27,7 +27,6 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.TreeSet;
-import java.util.concurrent.ConcurrentHashMap;
 
 import javax.jcr.NamespaceRegistry;
 import javax.jcr.PropertyType;
@@ -603,8 +602,8 @@ public class NodeTypeRegistryImpl implem
     private class NodeTypeDefinitionMap implements Map<Name, QNodeTypeDefinition> {
 
         // map of node type names and node type definitions
-        private final ConcurrentHashMap<Name, QNodeTypeDefinition> nodetypeDefinitions
=
-            new ConcurrentHashMap<Name, QNodeTypeDefinition>();
+        private Map<Name, QNodeTypeDefinition> nodetypeDefinitions =
+            new HashMap<Name, QNodeTypeDefinition>();
 
         private Collection<QNodeTypeDefinition> getValues() {
             return nodetypeDefinitions.values();



Mime
View raw message