atom/language-java

Enum implements does not highlight

Closed this issue · 0 comments

Description

image

class A {
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {

        WHY((short) 1, "why");

        static {
            for (_Fields field : EnumSet.allOf(_Fields.class)) {
                byName.put(field.getFieldName(), field);
            }
        }

        /**
         * Find the _Fields constant that matches fieldId, or null if its not found.
         */
        public static _Fields findByThriftId(int fieldId) {
            switch(fieldId) {
                case // WHY
                1:
                    return WHY;
                default:
                    return null;
            }
        }
    }
}

version 7c3d0d3