IntDef vs enum clarification in the Java style guide

18 views
Skip to first unread message

Carlos Knippschild

unread,
Jun 1, 2021, 2:09:04 PM6/1/21
to Chromium-dev
Chromium Java code has ben favoring the usage of IntDef sets instead of enum due to performance reasons, but I just noticed this is not mentioned in our Java style guide. Is there any reason why the guide should not be updated to mention that preference?

Andrew Grieve

unread,
Jun 1, 2021, 2:40:42 PM6/1/21
to car...@chromium.org, java
-chromium-dev, +java 

On Tue, Jun 1, 2021 at 2:08 PM Carlos Knippschild <car...@chromium.org> wrote:
Chromium Java code has ben favoring the usage of IntDef sets instead of enum due to performance reasons, but I just noticed this is not mentioned in our Java style guide. Is there any reason why the guide should not be updated to mention that preference?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAAME5gBQu1UFuheXC2wQVmAELJ2nVHNEj92Sds5GEykfBr1FVQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages