Versions Compared

Key

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

...

Here is a formatter profile for eclipse 3.1: apache-codeconv.xml . Import it through Window->Preferences->Java->Code Style->Formatter

Wiki MarkupHere is a formatter profile for IntelliJ IDEA 7.0 (7718): \[[attachment:MyFacesIdeaSettings.jar]\]. Import it through maven-idea-codestyle.xml. Import it through File->Import Settings ... This should add a new profile called "MyFaces"

Error and exception handling

...

  • If there is no chance to get the system back to a stable state, a message with severity "fatal" should be logged and a ! RuntimeException (or derived class) should be thrown. Vice versa: Whenever a ! RuntimeException (or derived class) is thrown from within a catch clause, a message with severity "fatal" must have been logged right before.
  • If the exception is severe, but there is a chance to continue processing, a message with severity "error" or "warning" should be logged.

...

Addition special comments (see 10.5.4 in ! CodeConv)

  • TODO: something that is not yet ready
  • HACK: something that is bogus but (meanwhile) necessary to make it work
  • XXX: something that is bogus but works
  • FIXME: something that is bogus and broken

...