Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Use meaningful names
  • Package names are all lowercase
  • Constants are in UPPER CASE. Use '_' to separate words
  • Class starts with an uppercase and each starting word is upper cased. No '_'.
  • The class name of an exception class must end in 'Exception' or 'Error' depending on which it descends from.
  • Methods, fields, and variables must start with lower case and then follow the same rule as classes.
  • Acronyms should be uppercased when used as part of a name: for example, getURL() rather than getUrl().  This applies even when more than one acronym appears together, as in getLDAPURL(), but picking names so that this doesn't happen will make you more popular.  [Decided: 2013-05-31]
  • Abbreviations are not acronyms, so the above rule does not apply to them.  For example, getId() is fine for "get the identifier".
  • Never name a method parameter the same name as a Class field (i.e., if you ever have to use this you're doing something wrong)

...

 log.level("{} Blah ...", getLogPrefix());