[Engine-devel] java enum syntax trick

Gilad Chaplik gchaplik at redhat.com
Wed Apr 18 08:49:12 UTC 2012


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 at redhat.com>
> To: "engine-devel" <engine-devel at 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 at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
> 



More information about the Devel mailing list