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] Prefer ArrayList to Vector.
[simgrid.git]
/
examples
/
deprecated
/
java
/
dht
/
kademlia
/
RoutingTable.java
diff --git
a/examples/deprecated/java/dht/kademlia/RoutingTable.java
b/examples/deprecated/java/dht/kademlia/RoutingTable.java
index
0216915
..
b18ee0c
100644
(file)
--- a/
examples/deprecated/java/dht/kademlia/RoutingTable.java
+++ b/
examples/deprecated/java/dht/kademlia/RoutingTable.java
@@
-5,20
+5,20
@@
* under the terms of the license (GNU LGPL) which comes with this package. */
package dht.kademlia;
* under the terms of the license (GNU LGPL) which comes with this package. */
package dht.kademlia;
+import java.util.ArrayList;
import java.util.Collections;
import java.util.Collections;
-import java.util.Vector;
import org.simgrid.msg.Msg;
public class RoutingTable {
/* Bucket list */
import org.simgrid.msg.Msg;
public class RoutingTable {
/* Bucket list */
- private
Vector
<Bucket> buckets;
+ private
ArrayList
<Bucket> buckets;
/* Id of the routing table owner */
private int id;
public RoutingTable(int id) {
this.id = id;
/* Id of the routing table owner */
private int id;
public RoutingTable(int id) {
this.id = id;
- buckets = new
Vector
<>();
+ buckets = new
ArrayList
<>();
for (int i = 0; i < Common.IDENTIFIER_SIZE + 1; i++) {
buckets.add(new Bucket(i));
}
for (int i = 0; i < Common.IDENTIFIER_SIZE + 1; i++) {
buckets.add(new Bucket(i));
}