Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: OK to expose primitives via getter/setter

...

Rules

Severity

No tabs allowed in source files

error

Each statement should be on a separate line (simplifies debugging)

error

Imports: No wildcards

error

Imports: Order by groups: java, javax, org, com

warning

Imports: Order in alphabetical order with a group

warning

Indentation: (Java) use 4 spaces

warning

SVN keywords: $Date$ should not be used

warning

Indentation: (POM) prefer 4 spaces, allow 2, but be consistent within a file (1)

info

JavaDoc: @author Tag should not be used

info

JavaDoc: @deprecated Tag must include version where first deprecated, and a link to the replacement (if any)

warning

JavaDoc: @since Tag must be used to document new classes and methods where these form part of the public API

warning

Object visibility should be the minimum required (See notes)

warning

Prefer immutable classes as these are automatically thread-safe

info

Mutable fields must be private (See notes)

error

Mutable fields (except primitives) should not be exposed via getters/setters (See notes)

warning

Add your rule here

warning

...