[Engine-devel] java enum syntax trick

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

Great suggestion :) even gwt supports it from now on, I will add it when changing an enum (and ask it when I'm reviewing). Thanks, Gilad. ----- Original Message -----
From: "Laszlo Hornyak" <lhornyak@redhat.com> To: "engine-devel" <engine-devel@ovirt.org> Sent: Wednesday, April 18, 2012 11:13:37 AM Subject: [Engine-devel] java enum syntax trick
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 _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
participants (2)
-
Gilad Chaplik
-
Laszlo Hornyak