1 6 package com.puppycrawl.tools.checkstyle; 7 8 14 strictfp final class InputModifier { 16 17 18 static private boolean sModifierOrderVar = false; 19 20 24 strictfp private void doStuff() 25 { 26 } 27 28 29 @MyAnnotation2 void someMethod() 30 { 31 } 32 33 34 private @MyAnnotation2 void someMethod2() 35 { 36 } 37 38 39 private @MyAnnotation2 strictfp void someMethod3() 40 { 41 } 42 43 44 @MyAnnotation2 private strictfp void someMethod4() 45 { 46 } 47 48 49 @MyAnnotation2 private static @MyAnnotation4 strictfp void someMethod5() 50 { 51 } 52 53 54 public interface InputRedundantPublicModifier 55 { 56 57 public void a(); 58 59 60 void b(); 61 62 63 abstract void c(); 64 65 66 public float PI_PUBLIC = (float) 3.14; 67 68 69 71 72 final float PI_FINAL = (float) 3.14; 73 74 75 float PI_OK = (float) 3.14; 76 } 77 78 79 private final void method() 80 { 81 } 82 } 83 84 85 final class RedundantFinalClass 86 { 87 88 public final void finalMethod() 89 { 90 } 91 92 93 public void method() 94 { 95 } 96 } 97 98 99 interface InnerImplementation 100 { 101 InnerImplementation inner = 102 new InnerImplementation() 103 { 104 105 public void method() 106 { 107 } 108 }; 109 110 void method(); 111 } 112 113 114 @interface Annotation 115 { 116 public String s1 = ""; 117 final String s2 = ""; 118 static String s3 = ""; 119 String s4 = ""; 120 public String blah(); 121 abstract String blah2(); 122 } 123 124 @interface MyAnnotation2 { 125 } 126 127 @interface MyAnnotation4 { 128 } 129 | Popular Tags |