edu.umd.cs.findbugs.detect

Class FindUnrelatedTypesInGenericContainer

public class FindUnrelatedTypesInGenericContainer extends Object implements Detector

Author: Nat Ayewah

Constructor Summary
FindUnrelatedTypesInGenericContainer(BugReporter bugReporter)
Method Summary
static StringgetCollectionsMapKey(String... triplet)
booleanprescreen(ClassContext classContext, Method method)
Use this to screen out methods that do not contain invocations.
voidreport()
Empty
voidvisitClassContext(ClassContext classContext)
Visit the class context

Constructor Detail

FindUnrelatedTypesInGenericContainer

public FindUnrelatedTypesInGenericContainer(BugReporter bugReporter)

Method Detail

getCollectionsMapKey

public static String getCollectionsMapKey(String... triplet)

Parameters: triplet[0] = className. The name of the collection e.g. java.util.List triplet[1] = methodName. The method's name e.g. contains triplet[2] = methodSignature. The method's signature e.g. (Ljava/lang/Object;)Z

Returns:

prescreen

public boolean prescreen(ClassContext classContext, Method method)
Use this to screen out methods that do not contain invocations.

report

public void report()
Empty

See Also: report

visitClassContext

public void visitClassContext(ClassContext classContext)
Visit the class context

See Also: visitClassContext

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.