From: Arnaud Giersch Date: Thu, 4 Apr 2019 08:39:24 +0000 (+0200) Subject: [sonar] Prefer ArrayList to Vector. X-Git-Tag: v3.22.2~182 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/54e214b7dc707984f5d741a02ec18818c384c242 [sonar] Prefer ArrayList to Vector. --- diff --git a/examples/deprecated/java/dht/kademlia/RoutingTable.java b/examples/deprecated/java/dht/kademlia/RoutingTable.java index 02169154af..b18ee0cab1 100644 --- 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; +import java.util.ArrayList; import java.util.Collections; -import java.util.Vector; import org.simgrid.msg.Msg; public class RoutingTable { /* Bucket list */ - private Vector buckets; + private ArrayList buckets; /* 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)); }