Class 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}).