Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move recently added getters after the constuctors
[simgrid.git] / examples / java / dht / chord / GetPredecessorAnswerTask.java
index d9ff5c8..8ed7ec1 100644 (file)
@@ -9,12 +9,12 @@ package dht.chord;
 public class GetPredecessorAnswerTask extends ChordTask {
   private int answerId;
 
-  public int getAnswerId(){
-    return this.answerId;
-  }
-
   public GetPredecessorAnswerTask(String issuerHostname, String answerTo, int answerId) {
     super(issuerHostname,answerTo);
     this.answerId = answerId;
   }
+
+  public int getAnswerId(){
+    return this.answerId;
+  }
 }