Switch CompositeModification to bypass thread-local streams
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / modification / AbstractModification.java
index c81468d6617a9a2302a17a2218c9e613764ebe2a..33bd4d45e191419d605153463eafd2e00987830e 100644 (file)
@@ -18,15 +18,20 @@ public abstract class AbstractModification implements Modification {
     private YangInstanceIdentifier path;
     private short version;
 
-    protected AbstractModification(short version) {
+    protected AbstractModification(final short version) {
         this.version = version;
     }
 
-    protected AbstractModification(YangInstanceIdentifier path) {
+    protected AbstractModification(final short version, final YangInstanceIdentifier path) {
+        this.path = path;
+        this.version = version;
+    }
+
+    protected AbstractModification(final YangInstanceIdentifier path) {
         this.path = path;
     }
 
-    protected void setPath(YangInstanceIdentifier path) {
+    protected void setPath(final YangInstanceIdentifier path) {
         this.path = path;
     }