JavaScript is disabled on your browser.
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.
Constructor Summary
Constructors
Method Summary
All Methods Static Methods Concrete Methods
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
RemoveUnusedImports
public RemoveUnusedImports ()
Method Details
removeUnusedImports
public static String removeUnusedImports (String contents)
throws com.palantir.javaformat.java.FormatterException
Throws:
com.palantir.javaformat.java.FormatterException