Package edu.umd.cs.findbugs.model
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 BugCollection
private final BugCollection
private 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 String
getShortClassName
(String className) Get a short class name (no package part).boolean
isEmpty()
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:ClassNameRewriter
Rewrite a class name.- Specified by:
rewriteClassName
in 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
Build a map of short class names (without package) to full class names.- Parameters:
classSet
- set of fully-qualified class names- Returns:
- map of short class names to fully-qualified class names
-
getShortClassName
Get a short class name (no package part).- Parameters:
className
- a class name- Returns:
- short class name
-