Package com.diffplug.spotless.java
Class FormatAnnotationsStep
java.lang.Object
com.diffplug.spotless.java.FormatAnnotationsStep
- All Implemented Interfaces:
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:
-
Method Summary
-
Method Details
-
create
-
create
public static FormatterStep create(List<String> addedTypeAnnotations, List<String> removedTypeAnnotations)
-