Class MovedClassMap
java.lang.Object
edu.umd.cs.findbugs.model.MovedClassMap
- All Implemented Interfaces:
ClassNameRewriter
Build a map of added class names to removed class names. Serves as a
ClassNameRewriter that can match up renamed classes in two BugCollections.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BugCollectionprivate final BugCollectionprivate static final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildClassSet(BugCollection bugCollection) Find set of classes referenced in given BugCollection.buildShortNameToFullNameMap(Set<String> classSet) Build a map of short class names (without package) to full class names.execute()private StringgetShortClassName(String className) Get a short class name (no package part).booleanisEmpty()rewriteClassName(String className) Rewrite a class name.
-
Field Details
-
DEBUG
private static final boolean DEBUG -
before
-
after
-
rewriteMap
-
-
Constructor Details
-
MovedClassMap
-
-
Method Details
-
execute
-
isEmpty
public boolean isEmpty() -
rewriteClassName
Description copied from interface:ClassNameRewriterRewrite a class name.- Specified by:
rewriteClassNamein interfaceClassNameRewriter- Parameters:
className- a class name- Returns:
- the rewritten class name
-
buildClassSet
Find set of classes referenced in given BugCollection.- Parameters:
bugCollection-- Returns:
- set of classes referenced in the BugCollection
-
buildShortNameToFullNameMap
-
getShortClassName
-