X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fnotifications%2FLeaderStateChanged.java;h=373823ef0ffeaf0ac37140aab1d437c7e4753979;hb=HEAD;hp=caa1a8debf53911bd2193c085c36a64a5aea2117;hpb=b4bf55727093657662d8c16a50fa85f87978a586;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/LeaderStateChanged.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/LeaderStateChanged.java index caa1a8debf..373823ef0f 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/LeaderStateChanged.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/LeaderStateChanged.java @@ -18,11 +18,12 @@ import org.eclipse.jdt.annotation.Nullable; * @author Thomas Pantelis */ public class LeaderStateChanged { - private final String memberId; - private final String leaderId; + private final @NonNull String memberId; + private final @Nullable String leaderId; private final short leaderPayloadVersion; - public LeaderStateChanged(@NonNull String memberId, @Nullable String leaderId, short leaderPayloadVersion) { + public LeaderStateChanged(final @NonNull String memberId, final @Nullable String leaderId, + final short leaderPayloadVersion) { this.memberId = requireNonNull(memberId); this.leaderId = leaderId; this.leaderPayloadVersion = leaderPayloadVersion;