Package com.diffplug.spotless.java
Class FormatAnnotationsStep
- java.lang.Object
-
- com.diffplug.spotless.java.FormatAnnotationsStep
-
public final class FormatAnnotationsStep extends Object
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})
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FormatterStep
create()
static FormatterStep
create(List<String> addedTypeAnnotations, List<String> removedTypeAnnotations)
-
-
-
Method Detail
-
create
public static FormatterStep create()
-
create
public static FormatterStep create(List<String> addedTypeAnnotations, List<String> removedTypeAnnotations)
-
-