1 package com.puppycrawl.tools.checkstyle.checks.modifier.interfacememberimpliedmodifier; 2 3 public interface InputInterfaceMemberImpliedModifierNestedOnInterface { 4 5 public static interface NestedInterfacePublicStatic { 6 } 7 8 public interface NestedInterfacePublic { 9 } 10 11 static interface NestedInterfaceStatic { 12 } 13 14 interface NestedInterface { 15 } 16 17 public static enum NestedEnumPublicStatic { 18 TRUE, 19 FALSE 20 } 21 22 public enum NestedEnumPublic { 23 TRUE, 24 FALSE 25 } 26 27 static enum NestedEnumStatic { 28 TRUE, 29 FALSE 30 } 31 32 enum NestedEnum { 33 TRUE, 34 FALSE 35 } 36 37 public static class NestedClassPublicStatic { 38 } 39 40 public class NestedClassPublic { 41 } 42 43 static class NestedClassStatic { 44 } 45 46 class NestedClass { 47 } 48 49 public default boolean methodWithLocalClass(String input) { 50 class LocalClass { 51 52 public boolean test(String str) { 53 return str.isEmpty(); 54 } 55 } 56 LocalClass foo = new LocalClass(); 57 return foo.test(input); 58 } 59 60 }