Open rubenev opened 8 years ago
Zie paragraaf 8.3.1 field modifiers
https://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#jls-8.3.1
and 8.4.3 method modifiers
https://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#jls-8.4.3
Should be: public static instead of static public
public and static are both field and method modifiers that have no order. So,
public static myMethod...
and
static public myMethod ...
are both syntactically correct. See links before
I propose we'd consider it a bug if we structurally demonstrate code that goes against the customs and usual practices of the field.
+1
It's not a bug and I know it is commonly used in the form:
public static
So an extra opportunity to get attention of what we are actually writing or just copy from 'others'...:-)
1 class MyClass { 2 static public int f( int x ) { 3 return (x + 10) ; 4 } 5 }