
resources.report.rules.pmd.ReplaceVectorWithList.html Maven / Gradle / Ivy
ReplaceVectorWithList
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();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy