X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmodification%2FAbstractModification.java;h=33bd4d45e191419d605153463eafd2e00987830e;hb=c9587253579a7b34f4c397a254f83890d4d3ba03;hp=02b8047b44bfae5ca1094acc5b26ddfd07890a1b;hpb=925cb4a228d0fda99c7bfeb432eb25285a223887;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java index 02b8047b44..33bd4d45e1 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2014, 2017 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -8,7 +8,6 @@ package org.opendaylight.controller.cluster.datastore.modification; - import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; /** @@ -19,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(final short version, final YangInstanceIdentifier path) { + this.path = path; this.version = version; } - protected AbstractModification(YangInstanceIdentifier path) { + protected AbstractModification(final YangInstanceIdentifier path) { this.path = path; } - protected void setPath(YangInstanceIdentifier path) { + protected void setPath(final YangInstanceIdentifier path) { this.path = path; }