1 package com.puppycrawl.tools.checkstyle.checks.modifier.redundantmodifier; 2 3 public class InputRedundantModifierStaticModifierInNestedEnum { 4 static enum NestedEnumWithRedundantStatic {} // violation 5 6 enum CorrectNestedEnum { 7 VAL; 8 static enum NestedEnumWithRedundantStatic {} // violation 9 } 10 11 interface NestedInterface { 12 static enum NestedEnumWithRedundantStatic {} // violation 13 } 14 }