KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * InputValidLabelIndent.java
3  *
4  * Created on February 21, 2003, 11:28 PM
5  */

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

13 public class InputValidLabelIndent {
14     
15     /** Creates a new instance of InputValidLabelIndent */
16     public InputValidLabelIndent() {
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     }
32     
33 }
34
Popular Tags