A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sonar treats
[simgrid.git]
/
examples
/
java
/
dht
/
kademlia
/
Answer.java
diff --git
a/examples/java/dht/kademlia/Answer.java
b/examples/java/dht/kademlia/Answer.java
index
c339c3b
..
7a34831
100644
(file)
--- a/
examples/java/dht/kademlia/Answer.java
+++ b/
examples/java/dht/kademlia/Answer.java
@@
-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);