Make RequestVote immutable and change AbstractRPC#term to private
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / messages / AbstractRaftRPC.java
index 3c9ebf47fd7178eca126ce962504153ca7f8ad21..bb343897206bc92e93e217217c6785b4a5b24af1 100644 (file)
@@ -12,7 +12,7 @@ public class AbstractRaftRPC implements RaftRPC {
     private static final long serialVersionUID = -6061342433962854822L;
 
     // term
-    protected long term;
+    private long term;
 
     protected AbstractRaftRPC(long term){
         this.term = term;