Class MovedClassMap

java.lang.Object
edu.umd.cs.findbugs.model.MovedClassMap
All Implemented Interfaces:
ClassNameRewriter

public class MovedClassMap extends Object implements 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 Details

  • Constructor Details

  • Method Details

    • execute

      public MovedClassMap execute()
    • isEmpty

      public boolean isEmpty()
    • rewriteClassName

      public String rewriteClassName(String className)
      Description copied from interface: ClassNameRewriter
      Rewrite a class name.
      Specified by:
      rewriteClassName in interface ClassNameRewriter
      Parameters:
      className - a class name
      Returns:
      the rewritten class name
    • buildClassSet

      private Set<String> buildClassSet(BugCollection bugCollection)
      Find set of classes referenced in given BugCollection.
      Parameters:
      bugCollection -
      Returns:
      set of classes referenced in the BugCollection
    • buildShortNameToFullNameMap

      private Map<String,String> buildShortNameToFullNameMap(Set<String> classSet)
      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

      private String getShortClassName(String className)
      Get a short class name (no package part).
      Parameters:
      className - a class name
      Returns:
      short class name