KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * InputValidCommaIndent.java
3  *
4  * Created on December 1, 2002, 2:20 PM
5  */

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

13 public class InputValidCommaIndent {
14     
15     /** Creates a new instance of InputValidCommaIndent */
16     public InputValidCommaIndent() {
17     }
18    
19     public void method1(int x, int y, int z) {
20         boolean test = true;
21         int i, j = 2,
22             k = 4,
23             l,
24             m = 4;
25
26         boolean longVarName = true;
27         boolean myotherLongVariableName = false;
28         if (j == 2 || longVarName == true || myotherLongVariableName == true || myotherLongVariableName == false || longVarName == true) {
29         }
30         
31         if ((j == 2 && k == 3)
32               || test) {
33             System.out.println("test");
34         }
35         
36         
37     }
38     
39     public void method1(int a, int x,
40         int y, int z) {
41     }
42 }
43
Popular Tags