Access Modifiers

  • Fields, Methods and Classes must have a modifier: Public, Private or Protected. Package access is to be avoided where possible as this will cause extensibility issues once we move to OSGI or JDK Jigsaw.
  • Where possible inner classes should be static final to improve performance.
  • Declare method and constructor arguments final to avoid potential bugs and improve performance.