cgeo/c-geo-opensource — comment on commit ae2272e15f608b8eba4c1b7564f09d5080734636
File:  line 0
By Bananeweizen:

That (static method) would also avoid the confusion I had. I've now looked up the language specs and seen that I was wrong. Static members are initialized on class loading and therefore are done before members of normal classes are created (like described above), but enum values are initialized before static members, and the most interesting thing (at least for me): the initialization of enums and static members is in textual order, not like in the code.

@blafoo: Would you change that to a static method then?