1 package com.puppycrawl.tools.checkstyle; 2 3 8 12 class InputHiddenFieldReorder 13 { 14 15 16 public InputHiddenFieldReorder() 17 { 18 int hidden = 0; } 20 21 public InputHiddenFieldReorder(int hidden) { 23 } 24 25 public void shadow() 26 { 27 int hidden = 0; } 29 30 public void shadowFor() 31 { 32 for (int hidden = 0; hidden < 1; hidden++) { } 34 } 35 36 public void shadowParam(int hidden) { 38 } 39 40 public class Inner 41 { 42 44 public Inner() 45 { 46 int innerHidden = 0; } 48 49 public Inner(int innerHidden) { 51 } 52 53 private void innerShadow() 54 { 55 int innerHidden = 0; int hidden = 0; } 58 59 private void innerShadowFor() 60 { 61 for (int innerHidden = 0; innerHidden < 1; innerHidden++) { 62 } 63 for (int hidden = 0; hidden < 1; hidden++) { 65 } 66 } 67 68 private void shadowParam( 69 int innerHidden, int hidden ) 72 { 73 } 74 75 { 76 int innerHidden = 0; int hidden = 0; } 79 private int innerHidden = 0; 80 } 81 82 { 83 int hidden = 0; } 85 private int hidden = 0; 86 } 87 88 interface NothingHiddenReorder 89 { 90 public static int notHidden = 0; 91 92 public void noShadow(int notHidden); 94 } 95 96 enum HiddenEnum1 97 { 98 A(129), 99 B(283), 100 C(1212) 101 { 102 public void doSomething() 103 { 104 int hidden = 0; 106 } 107 108 112 int hidden; 113 }; 114 115 118 HiddenEnum1(int hidden) 119 { 120 } 121 122 public void doSomething() 123 { 124 int hidden = 0; 126 } 127 128 public static void doSomethingStatic() 129 { 130 int hiddenStatic = 0; 132 } 133 134 int hidden; 135 static int hiddenStatic; 136 } 137 | Popular Tags |