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 | ||||
---|---|---|---|---|
| ||||
if (i == 0)
{
doThis();
}
else
{
doThat();
andThat();
}
|
over:
Code Block | ||||
---|---|---|---|---|
| ||||
if (i == 0) {
doThis();
} else {
doThat();
andThat();
}
|
of even this:
Code Block | ||||
---|---|---|---|---|
| ||||
if (i == 0) doThis();
else {
doThat();
andThat();
}
|
...