djinni icon indicating copy to clipboard operation
djinni copied to clipboard

Java flags does not have ALL_OPTS and NONE_OPTS

Open paulocoutinhox opened this issue 7 years ago • 0 comments

Hi,

The djinni generated java flags doest not come with all opts and none opts. My suggestion is add the following constants to solve it:

public static final EnumSet<MyFlagClass> ALL_OPTS = EnumSet.allOf(MyFlagClass.class);
public static final EnumSet<MyFlagClass> NONE_OPTS = EnumSet.noneOf(MyFlagClass.class);

Today it is generating it:

https://github.com/ezored/dependency-logger/blob/master/build/djinni/java-output/ezored/util/LoggerLevel.java

Thanks.

paulocoutinhox avatar Oct 05 '18 23:10 paulocoutinhox