类 RemoveUnusedImports

java.lang.Object
com.palantir.javaformat.java.RemoveUnusedImports

public class RemoveUnusedImports extends Object
Removes unused imports from a source file. Imports that are only used in javadoc are also removed, and the references in javadoc are replaced with fully qualified names.
  • 构造器详细资料

    • RemoveUnusedImports

      public RemoveUnusedImports()
  • 方法详细资料

    • removeUnusedImports

      public static String removeUnusedImports(String contents) throws com.palantir.javaformat.java.FormatterException
      抛出:
      com.palantir.javaformat.java.FormatterException