[Engine-devel] java enum syntax trick
Laszlo Hornyak
lhornyak at redhat.com
Wed Apr 18 08:13:37 UTC 2012
Hi,
In java enums, you can leave a coma before the semicolon closing the names in the enum. e.g.
enum Foo {
bar,
baz, // <!-- last, still with a coma
; //and there is no more
}
I don't know if this fits in the code formating requirements, but maybe it could help us to waste less time on merging because you did not have to change the last line to add some more.
Laszlo
More information about the Engine-devel
mailing list