This rule is defined by the following XPath expression:
//AllocationExpression /ClassOrInterfaceType[@Image='Vector' or @Image='java.util.Vector']
Example:
public class SimpleTest extends TestCase { public void testX() { Collection c = new Vector(); // This achieves the same with much better performance // Collection c = new ArrayList(); } }