From 54e214b7dc707984f5d741a02ec18818c384c242 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 4 Apr 2019 10:39:24 +0200 Subject: [PATCH] [sonar] Prefer ArrayList to Vector. --- examples/deprecated/java/dht/kademlia/RoutingTable.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); } -- 2.20.1