jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1480921 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/DataIdentifier.java
Date Fri, 10 May 2013 08:14:45 GMT
Author: tommaso
Date: Fri May 10 08:14:45 2013
New Revision: 1480921

URL: http://svn.apache.org/r1480921
Log:
JCR-3534 - avoiding backward compatibility issue by adding back constructor DataIdentifier(byte[])

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/DataIdentifier.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/DataIdentifier.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/DataIdentifier.java?rev=1480921&r1=1480920&r2=1480921&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/DataIdentifier.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/DataIdentifier.java
Fri May 10 08:14:45 2013
@@ -61,6 +61,16 @@ public class DataIdentifier implements S
     }
 
     /**
+     * Creates a data identifier from the hexadecimal string
+     * representation of the given bytes.
+     *
+     * @param identifier data identifier
+     */
+    public DataIdentifier(byte[] identifier) {
+        this(AbstractDataStore.encodeHexString(identifier), null);
+    }
+
+    /**
      * Returns a secure reference to the identified binary, or {@code null}
      * if no such reference is available.
      *



Mime
View raw message