Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Enum implements does not highlight #185

@felixhao28

Description

@felixhao28

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions