Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar treats
[simgrid.git] / examples / java / dht / kademlia / Answer.java
index c339c3b..7a34831 100644 (file)
@@ -59,7 +59,7 @@ public class Answer {
 
   /* Returns if the destination has been found */
   public boolean destinationFound() {
-    if (nodes.size() < 1) {
+    if (nodes.isEmpty()) {
       return false;
     }
     Contact tail = nodes.get(0);