ReplaceVectorWithList

Consider replacing Vector usages with the newer java.util.ArrayList if expensive threadsafe operation is not required.

This rule is defined by the following XPath expression:


//Type/ReferenceType/ClassOrInterfaceType[@Image='Vector']
 
    

Example:

                

public class Foo {
 void bar() {
    Vector v = new Vector();
 }
}