1 6 7 8 9 package com.puppycrawl.tools.checkstyle.indention; 10 11 import java.awt.event.ActionEvent ; 12 import java.awt.event.ActionListener ; 13 import javax.swing.JButton ; 14 15 19 public class InputInvalidClassDefIndent extends java.awt.event.MouseAdapter implements java.awt.event.MouseListener { 20 21 22 } 23 24 class InputInvalidClassDefIndentB extends java.awt.event.MouseAdapter implements java.awt.event.MouseListener 25 { 26 27 28 } 29 30 31 class InputInvalidClassDefIndentC 32 { 33 34 35 } 36 37 38 39 class InputValidClassDefIndent2 40 extends java.awt.event.MouseAdapter 41 implements java.awt.event.MouseListener 42 { 43 44 } 45 46 class InputValidClassDefIndent3 47 extends java.awt.event.MouseAdapter 48 implements java.awt.event.MouseListener 49 { 50 51 } 52 53 final class InputValidClassDefIndent4 54 extends java.awt.event.MouseAdapter 55 implements 56 java.awt.event.MouseListener 57 { 58 59 } 60 61 final class InputValidClassDefIndent5 extends java.awt.event.MouseAdapter implements java.awt.event.MouseListener 62 { 63 64 } 65 66 67 final class InputValidClassDefIndent5b extends java.awt.event.MouseAdapter implements java.awt.event.MouseListener 68 { 69 70 } 71 72 73 class InputInvalidClassDefIndentc 74 extends java.awt.event.MouseAdapter implements java.awt.event.MouseListener { 75 76 77 } 78 79 80 81 final class InputValidClassDefIndent6 extends java.awt.event.MouseAdapter implements java.awt.event.MouseListener { 82 83 class foo { } 84 85 class fooBS { } 86 87 88 class foo2 { public int x; } 89 90 91 class foo3 { 92 public 93 int x; 94 } 95 96 class foo3b { 97 public 98 int x; 99 } 100 101 102 class foo4 { 103 public int x; 104 } 105 106 class foo4c { 107 public int x; 108 } 109 110 class foo4b { 111 public int x; 112 } 113 114 115 private void myMethod() { 116 class localFoo { 117 118 } 119 class localFoo1 { 120 121 } 122 123 class localFoo2 { 124 int x; 125 126 int func() { return 3; } 127 } 128 129 new JButton ().addActionListener(new ActionListener () 130 { 131 public void actionPerformed(ActionEvent e) { 132 133 } 134 }); 135 136 137 new JButton ().addActionListener(new ActionListener () 138 { 139 public void actionPerformed(ActionEvent e) { 140 141 } 142 }); 143 144 145 new JButton ().addActionListener(new ActionListener () 146 { 147 public void actionPerformed(ActionEvent e) { 148 149 } 150 }); 151 152 153 new JButton ().addActionListener(new ActionListener () { 154 public void actionPerformed(ActionEvent e) { 155 int i = 2; 156 } 157 }); 158 159 Object o = new ActionListener () 160 { 161 public void actionPerformed(ActionEvent e) { 162 163 } 164 }; 165 166 myfunc2(10, 10, 10, 167 myfunc3(11, 11, 168 11, 11), 169 10, 10, 170 10); 171 172 173 } 174 175 private void myfunc2(int a, int b, int c, int d, int e, int f, int g) { 176 } 177 178 private int myfunc3(int a, int b, int c, int d) { 179 return 1; 180 } 181 } 182 183 184 final 185 class InputValidClassDefIndent4d 186 extends 187 java.awt.event.MouseAdapter 188 implements 189 java.awt.event.MouseListener 190 { 191 192 } 193 | Popular Tags |