jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r607075 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/PathFactoryImpl.java
Date Thu, 27 Dec 2007 14:38:13 GMT
Author: reschke
Date: Thu Dec 27 06:38:12 2007
New Revision: 607075

URL: http://svn.apache.org/viewvc?rev=607075&view=rev
Log:
JCR-1280: fix Path.equals, allowing other implementations of Path.

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/PathFactoryImpl.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/PathFactoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/PathFactoryImpl.java?rev=607075&r1=607074&r2=607075&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/PathFactoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/PathFactoryImpl.java
Thu Dec 27 06:38:12 2007
@@ -611,7 +611,7 @@
             if (this == obj) {
                 return true;
             }
-            if (obj instanceof PathImpl) {
+            if (obj instanceof Path) {
                 Path other = (Path) obj;
                 return Arrays.equals(elements, other.getElements());
             }



Mime
View raw message