Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Various cleanups in the java world (1/2)
[simgrid.git] / examples / java / kademlia / FindNodeTask.java
index b5bfa97..f2020aa 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2013. The SimGrid Team.
+/* Copyright (c) 2012-2014, 2016. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -7,27 +7,19 @@
 package kademlia;
 
 /**
- * @brief Find node tasks sent by a node to another
- * "Find Node" task sent by a node to another. Ask him for
- * its closest nodes from a destination.
+ * @brief Find node tasks sent by a node to another "Find Node" task sent by a node to another. Ask him for its closest
+ * nodes from a destination.
  */
 public class FindNodeTask extends KademliaTask {
-       /**
-        * Id of the node we are trying to find: the destination
-        */
-       private int destination;
-       /**
-        * Constructor
-        */
-       public FindNodeTask(int senderId, int destination) {
-               super(senderId);        
-               this.destination = destination;
-       }
+  /* Id of the node we are trying to find: the destination */
+  private int destination;
 
+  public FindNodeTask(int senderId, int destination) {
+    super(senderId);  
+    this.destination = destination;
+  }
 
-
-       public int getDestination() {
-               return destination;
-       }
-       
+  public int getDestination() {
+    return destination;
+  }
 }