Versions Compared

Key

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

This page is still not up to date after the migration away from Codehaus.

Best practices

This is a set of best practices for IzPack developers and contributors.

...

The preferred style is ANSI-style, i.e., we prefer:

Code Block
java
java

if (i == 0)
{
    doThis();
}
else
{
    doThat();
    andThat();
}

over:

Code Block
java
java

if (i == 0) {
    doThis();
} else {
    doThat();
    andThat();
}

of even this:

Code Block
java
java

if (i == 0) doThis();
else {
    doThat();
    andThat();
}

...