When creating an enum with shouty names:
enum FooBar {
FOO_BAR_TEST,
FOO_BAR_TEST2
}
If all entries match the enum name (FOO_BAR -> FooBar), then the FOO_BAR prefix is stripped from the generated java enum.
This should also be supported for CamelCase naming:
enum FooBar {
FooBarTest,
FooBarTest2
}
Should become TEST and TEST2 on the java side.
Comment 1 by agrieve@chromium.org
, Nov 1 2017