mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-21 20:56:45 +01:00
Reword statement in standards.md
This commit is contained in:
parent
4b20f12eff
commit
0a4de6e2fc
11
standards.md
11
standards.md
@ -58,12 +58,13 @@ finally () {</pre>
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:</pre>
|
case 2:</pre>
|
||||||
* Whenever possible, check for a negative, rather than a positive
|
* Prefer early returns over method indentation. Example:
|
||||||
* <pre>if (!something) {
|
* <pre>if (!precondition) {
|
||||||
// Do things
|
// Possibly cleanup
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do other things</pre>
|
// Continue with task</pre>
|
||||||
* Java standard class and method naming, with exception to McMMO in a class name
|
* Java standard class and method naming, with exception to McMMO in a class name
|
||||||
* <pre>thisIsAMethod()</pre>
|
* <pre>thisIsAMethod()</pre>
|
||||||
* <pre>ThisIsAClass</pre>
|
* <pre>ThisIsAClass</pre>
|
||||||
@ -92,4 +93,4 @@ finally () {</pre>
|
|||||||
* private
|
* private
|
||||||
* static private
|
* static private
|
||||||
* abstract private
|
* abstract private
|
||||||
* No one-line if statements, they should all have brackets
|
* No one-line if statements, they should all have brackets
|
||||||
|
Loading…
Reference in New Issue
Block a user