KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > indentation > InputInvalidLabelIndent


1 /*
2  * InputInvalidLabelIndent.java
3  *
4  * Created on February 22, 2003, 12:11 AM
5  */

6
7 package com.puppycrawl.tools.checkstyle.indentation;
8
9 /**
10  *
11  * @author jrichard
12  */

13 public class InputInvalidLabelIndent {
14     
15     /** Creates a new instance of InputInvalidLabelIndent */
16     public InputInvalidLabelIndent() {
17         boolean test = true;
18         
19         while (test) {
20           label:
21             System.out.println("label test");
22             
23             if (test) {
24                 unusedLabel:
25                 System.out.println("more testing");
26             }
27             
28         }
29   label2:
30         System.out.println("toplevel");
31     label3:
32                   System.out.println("toplevel");
33                   System.out.println("toplevel");
34     label4:
35       System.out.println("toplevel");
36     label5:
37       System
38             .out.
39                 println("toplevel");
40     }
41     
42 }
43
Popular Tags