Skip to content

Files

Latest commit

 

History

History
25 lines (17 loc) · 682 Bytes

MissingBlankLineBeforeAnnotatedField.md

File metadata and controls

25 lines (17 loc) · 682 Bytes

Pattern: Missing blank line before annotated field

Issue: -

Description

Checks that there is a blank line before a field declaration that uses annotations. Ignore field declarations where all annotations are on the same line as the field declaration.

Examples

class MyClass {
	// No violations for field declarations preceded by a comment
	@Delegate
	AutoCloseable stream
	
	String publicField                  // violation
	@PackageScope
	String packageScopedField
}

Further Reading