aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidDoWhileIndent.java
blob: 03a153bd0c6ee0bfd456ca09590a196c4704ee4f (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
package com.puppycrawl.tools.checkstyle.checks.indentation; //indent:0 exp:0

public class InputInvalidDoWhileIndent { //indent:0 exp:0
    public void method1() { //indent:4 exp:4
        boolean test = true; //indent:8 exp:8

do System.getProperty("foo"); while (test); //indent:0 exp:8 warn
do {} while (test); //indent:0 exp:8 warn
do { //indent:0 exp:8 warn
} while (test); //indent:0 exp:8 warn
do {} //indent:0 exp:8 warn
while (test); //indent:0 exp:8 warn
do //indent:0 exp:8 warn
{} while (test); //indent:0 exp:8 warn
do {} //indent:0 exp:8 warn
while //indent:0 exp:8 warn
(test); //indent:0 exp:8 warn
do {} while //indent:0 exp:8 warn
(test); //indent:0 exp:8 warn
do {} while //indent:0 exp:8 warn
( //indent:0 exp:8 warn
test //indent:0 exp:8 warn
); //indent:0 exp:8 warn
    } //indent:4 exp:4
} //indent:0 exp:0