Class FormatAnnotationsStep

java.lang.Object
com.diffplug.spotless.java.FormatAnnotationsStep
All Implemented Interfaces:
Serializable

public final class FormatAnnotationsStep extends Object implements Serializable
Some formatters put every annotation on its own line -- even type annotations, which should be on the same line as the type they qualify. This class corrects the formatting. This is useful as a postprocessing step after a Java formatter that is not cognizant of type annotations.

Note: A type annotation is an annotation that is meta-annotated with @Target({ElementType.TYPE_USE}).

See Also: