blob: 2f73757ac547ab9fb9c55173340adecd6cdd584f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package com.puppycrawl.tools.checkstyle.checks.coding;
public class InputMultipleVariableDeclarations
{
int i, j;
int i1; int j1;
void method1() {
String str, str1;
java.lang.Object obj; Object obj1;
}
// second definition is wrapped
// line of VARIABLE_DEF is not the same as first line of the definition
java.lang.String string; java.lang.String
strings[];
//both definitions is wrapped
java.lang.
String string1; java.lang.String
strings1[];
void method2() {
for (int i=0, j=0; i < 10; i++, j--) {
}
for(int i=0; i<4;i++) {
}
switch("") {
case "6":
int k = 7;
}
}
}
|