TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - Java Coding Standard
Search

Rule:  Optimization4Checked automatically with code checker

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();
 }
}