jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r683999 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
Date Fri, 08 Aug 2008 15:30:53 GMT
Author: mreutegg
Date: Fri Aug  8 08:30:52 2008
New Revision: 683999

URL: http://svn.apache.org/viewvc?rev=683999&view=rev
Log:
JCR-1716: Prefer PathFactory.createElement() over createPath().getNameElement()

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java?rev=683999&r1=683998&r2=683999&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
Fri Aug  8 08:30:52 2008
@@ -278,7 +278,7 @@
                         Name name = child.getName();
                         int index = (child.getIndex() != 1) ? child.getIndex() : 0;
                         Path parentPath = getPath(n.getNodeId(), hmgr);
-                        Path.Element addedElem = PathFactoryImpl.getInstance().create(name,
index).getNameElement();
+                        Path.Element addedElem = PathFactoryImpl.getInstance().createElement(name,
index);
                         // get removed index
                         NodeState overlayed = (NodeState) n.getOverlayedState();
                         ChildNodeEntry entry = overlayed.getChildNodeEntry(child.getId());
@@ -286,7 +286,7 @@
                             throw new ItemStateException("Unable to retrieve old child index
for item: " + child.getId());
                         }
                         int oldIndex = (entry.getIndex() != 1) ? entry.getIndex() : 0;
-                        Path.Element removedElem = PathFactoryImpl.getInstance().create(name,
oldIndex).getNameElement();
+                        Path.Element removedElem = PathFactoryImpl.getInstance().createElement(name,
oldIndex);
 
                         events.add(EventState.childNodeRemoved(n.getNodeId(),
                                 parentPath,



Mime
View raw message