...
- indentation must be four spaces (no tabs)
- do not never use this (
this.<field>) when referencing member fields, instead use prefixes (s_ and m_) - Member variables should always be prefixed with m_
- Static variables should always be prefixed with s_
- Constants should always be in uppercase and use underscores:
THIS_IS_A_CONSTANT - no lines should be longer than 120 characters
- wildcards are NOT allowed in package imports and the imports should be logically grouped
- invocations to static methods should always be prefixed with their class, e.g.
MyClass.myStaticMethod
...
- spaces should be used as in the code sample given:
Code Block java for (int i = 0; i < 10; i++) { if (i == 5) { i += 5; } }
- never use this (
this.<field>) when referencing member fields, instead use prefixes (s_ and m_)
