This rule is Obsolete | |
Synopsis: | Use ArrayList instead of Vector |
Language: | Java |
Severity Level: | 5 |
Category: | Optimization |
Description: |
ArrayList is a much better Collection implementation than Vector.public class SimpleTest extends TestCase { public void testX() { Collection c = new Vector(); // This achieves the same with much better performance // Collection c = new ArrayList(); } } |