Author: reschke
Date: Fri Oct 21 16:58:07 2016
New Revision: 1766071
URL: http://svn.apache.org/viewvc?rev=1766071&view=rev
Log:
OAK-4964: UpdateOp.set("_id", ...) should do a sanity check on the id
Update documentation.
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/UpdateOp.java
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/UpdateOp.java
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/UpdateOp.java?rev=1766071&r1=1766070&r2=1766071&view=diff
==============================================================================
---
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/UpdateOp.java
(original)
+++
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/UpdateOp.java
Fri Oct 21 16:58:07 2016
@@ -196,6 +196,11 @@ public final class UpdateOp {
*
* @param property the property name
* @param value the value
+ * @throws IllegalArgumentException
+ * if an attempt is made to set {@link Document#ID} to a value
+ * inconsistent with the id parameter set in the constructor
+ * (note that setting the ID here is redundant and might be
+ * rejected in future versions)
*/
public void set(String property, String value) {
internalSet(property, value);