jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1049909 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype: EffectiveNodeType.java EffectiveNodeTypeCacheImpl.java virtual/VirtualNodeTypeStateManager.java
Date Thu, 16 Dec 2010 10:48:19 GMT
Author: angela
Date: Thu Dec 16 10:48:18 2010
New Revision: 1049909

URL: http://svn.apache.org/viewvc?rev=1049909&view=rev
Log:
minor improvement

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeType.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeTypeCacheImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/virtual/VirtualNodeTypeStateManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeType.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeType.java?rev=1049909&r1=1049908&r2=1049909&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeType.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeType.java
Thu Dec 16 10:48:18 2010
@@ -642,7 +642,7 @@ public class EffectiveNodeType implement
         try {
             getApplicableChildNodeDef(name, null, null);
         } catch (NoSuchNodeTypeException nsnte) {
-            String msg = "internal eror: inconsistent node type";
+            String msg = "internal error: inconsistent node type";
             log.debug(msg);
             throw new ConstraintViolationException(msg, nsnte);
         }
@@ -1145,6 +1145,7 @@ public class EffectiveNodeType implement
         }
     }
 
+    @Override
     protected Object clone() {
         EffectiveNodeType clone = new EffectiveNodeType();
 

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeTypeCacheImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeTypeCacheImpl.java?rev=1049909&r1=1049908&r2=1049909&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeTypeCacheImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/EffectiveNodeTypeCacheImpl.java
Thu Dec 16 10:48:18 2010
@@ -161,6 +161,7 @@ public class EffectiveNodeTypeCacheImpl 
     /**
      * {@inheritDoc}
      */
+    @Override
     public Object clone() {
         EffectiveNodeTypeCacheImpl clone = new EffectiveNodeTypeCacheImpl();
         clone.sortedKeys.addAll(sortedKeys);
@@ -190,7 +191,7 @@ public class EffectiveNodeTypeCacheImpl 
      * a combination (i.e. an aggregation) of one or more node types.
      * The weight is an indicator for the cost involved in building such an
      * aggregate (e.g. an aggregation of multiple complex node types with deep
-     * inheritance trees is more costly to build/validate than an agreggation
+     * inheritance trees is more costly to build/validate than an aggregation
      * of two very simple node types with just one property definition each).
      * <p/>
      * A very simple (and not very accurate) approximation of the weight would
@@ -331,9 +332,9 @@ public class EffectiveNodeTypeCacheImpl 
         public int hashCode() {
             int h = 17;
             // ignore weight
-            for (int i = 0; i < names.length; i++) {
+            for (Name name : names) {
                 h *= 37;
-                h += names[i].hashCode();
+                h += name.hashCode();
             }
             return h;
         }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/virtual/VirtualNodeTypeStateManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/virtual/VirtualNodeTypeStateManager.java?rev=1049909&r1=1049908&r2=1049909&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/virtual/VirtualNodeTypeStateManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/virtual/VirtualNodeTypeStateManager.java
Thu Dec 16 10:48:18 2010
@@ -135,7 +135,7 @@ public class VirtualNodeTypeStateManager
 
     /**
      * Sets the system session. This is needed, since the session should be
-     * set, after the workspaces are initialzed.
+     * set, after the workspaces are initialized.
      *
      * @param systemSession
      */
@@ -156,7 +156,7 @@ public class VirtualNodeTypeStateManager
                 // generate observation events
                 NodeImpl root = (NodeImpl) systemSession.getItemManager().getItem(rootNodeId);
                 NodeImpl child = root.getNode(ntName);
-                List events = new ArrayList();
+                List<EventState> events = new ArrayList<EventState>();
                 recursiveAdd(events, root, child);
                 obsDispatcher.dispatch(events, systemSession,
                         NODE_TYPES_PATH, null);



Mime
View raw message