1 /* 2 RedundantModifier 3 tokens = (default)METHOD_DEF, VARIABLE_DEF, ANNOTATION_FIELD_DEF, INTERFACE_DEF, \ 4 CTOR_DEF, CLASS_DEF, ENUM_DEF, RESOURCE 5 6 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.modifier.redundantmodifier; 10 11 public class InputRedundantModifierStaticModifierInNestedEnum { 12 static enum NestedEnumWithRedundantStatic {} // violation 13 14 enum CorrectNestedEnum { 15 VAL; 16 static enum NestedEnumWithRedundantStatic {} // violation 17 } 18 19 interface NestedInterface { 20 static enum NestedEnumWithRedundantStatic {} // violation 21 } 22 }