Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
java enums
Hi,
Why doesn't Vaadin use java enums instead of all these static int values? E.g. Sizeable.UNITS_* , see https://vaadin.com/api/constant-values.html for a full list.
I guess this is for historical reasons, but in my opinion the compile-time type checking and IDE auto-completion are well worth converting this to enums in Vaadin 7. In the rare cases that it is necessary to associate a specific integer with a value (e.g. for bit masks, or for compatibility), this is perfectly possible using enums.
(note that I haven't looked at Vaadin 7 yet, so maybe this is already done)
Herman
All constants have not yet been converted to enums, but there is an ongoing effort to get them all converted before the final release of Vaadin 7.