Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 741 Bytes

AnnotationUseStyle.md

File metadata and controls

32 lines (19 loc) · 741 Bytes

Pattern: Incorrect annotation style

Issue: -

Description

This check controls the style with the usage of annotations.

Examples

To configure the check:

 <module name="AnnotationUseStyle"/>

To configure the check to enforce an expanded style, with a trailing array comma set to never and always including the closing parenthesis.

<module name="AnnotationUseStyle">
    <property name="elementStyle" value="expanded"/>
    <property name="trailingArrayComma" value="never"/>
    <property name="closingParens" value="always"/>
</module>

Further Reading