Public constants need to be final 64/34164/1
authorRobert Varga <rovarga@cisco.com>
Fri, 5 Feb 2016 14:45:29 +0000 (15:45 +0100)
committerRobert Varga <rovarga@cisco.com>
Fri, 5 Feb 2016 14:45:29 +0000 (15:45 +0100)
Make constants really constant.

Change-Id: Iacca77288d0b53f578da367fd490ff69b4484a2a
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/NoopPeerAddressResolver.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/SuccessReply.java

index 162521a..f1c13ba 100644 (file)
@@ -13,7 +13,7 @@ package org.opendaylight.controller.cluster.raft;
  * @author Thomas Pantelis
  */
 public final class NoopPeerAddressResolver implements PeerAddressResolver {
-    public static NoopPeerAddressResolver INSTANCE = new NoopPeerAddressResolver();
+    public static final NoopPeerAddressResolver INSTANCE = new NoopPeerAddressResolver();
 
     private NoopPeerAddressResolver() {
     }
index f8ac916..ace731e 100644 (file)
@@ -17,5 +17,5 @@ import java.io.Serializable;
 public class SuccessReply implements Serializable {
     private static final long serialVersionUID = 1L;
 
-    public static SuccessReply INSTANCE = new SuccessReply();
+    public static final SuccessReply INSTANCE = new SuccessReply();
 }