aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputAnonymousClassInMethodCurlyOnNewLine.java
blob: 2796bc7ce4cbbf4be7a8d027e897bfd03965a8c4 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package com.puppycrawl.tools.checkstyle.checks.indentation; //indent:0 exp:0

import java.util.List; //indent:0 exp:0
import java.util.Map; //indent:0 exp:0
import java.util.function.Supplier; //indent:0 exp:0

/**                                                                         //indent:0 exp:0
 * This test-input is intended to be checked using following configuration: //indent:1 exp:1
 *                                                                          //indent:1 exp:1
 * arrayInitIndent = 4                                                      //indent:1 exp:1
 * basicOffset = 4                                                          //indent:1 exp:1
 * braceAdjustment = 0                                                      //indent:1 exp:1
 * caseIndent = 4                                                           //indent:1 exp:1
 * forceStrictCondition = false                                             //indent:1 exp:1
 * lineWrappingIndentation = 8                                              //indent:1 exp:1
 * tabWidth = 4                                                             //indent:1 exp:1
 * throwsIndent = 4                                                         //indent:1 exp:1
 */                                                                         //indent:1 exp:1
public class InputAnonymousClassInMethodCurlyOnNewLine //indent:0 exp:0
{ //indent:0 exp:0
    private void aMethod() //indent:4 exp:4
    { //indent:4 exp:4
        final Supplier<Map<String, List<AbstractExpressionHandler>>> sup1 = //indent:8 exp:8
                new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() { //indent:16 exp:>=16
                    @Override //indent:20 exp:20
                    public Map<String, List<AbstractExpressionHandler>> get() //indent:20 exp:20
                    { //indent:20 exp:20
                        return null; //indent:24 exp:24
                    } //indent:20 exp:20
                }; //indent:16 exp:16
        final Supplier<Map<String, List<AbstractExpressionHandler>>> sup2 = //indent:8 exp:8
                  new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() { //indent:18 exp:>=16
                    @Override //indent:20 exp:20
                    public Map<String, List<AbstractExpressionHandler>> get() //indent:20 exp:20
                    { //indent:20 exp:20
                        return null; //indent:24 exp:24
                    } //indent:20 exp:20
                  }; //indent:18 exp:8,12,16 warn
        final Supplier<Map<String, List<AbstractExpressionHandler>>> sup3 = //indent:8 exp:8
              new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() { //indent:14 exp:>=16 warn
                    @Override //indent:20 exp:20
                    public Map<String, List<AbstractExpressionHandler>> get() //indent:20 exp:20
                    { //indent:20 exp:20
                        return null; //indent:24 exp:24
                    } //indent:20 exp:20
              }; //indent:14 exp:8,12,16 warn
        final Supplier<Map<String, List<AbstractExpressionHandler>>> sup4 = //indent:8 exp:8
                new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() //indent:16 exp:>=16
                { //indent:16 exp:16
                    @Override //indent:20 exp:20
                    public Map<String, List<AbstractExpressionHandler>> get() //indent:20 exp:20
                    { //indent:20 exp:20
                        return null; //indent:24 exp:24
                    } //indent:20 exp:20
                }; //indent:16 exp:16
        final Supplier<Map<String, List<AbstractExpressionHandler>>> sup5 = //indent:8 exp:8
                new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() //indent:16 exp:>=16
                  { //indent:18 exp:8,12,16 warn
                      @Override //indent:22 exp:22
                      public Map<String, List<AbstractExpressionHandler>> get() //indent:22 exp:22
                      { //indent:22 exp:22
                          return null; //indent:26 exp:26
                      } //indent:22 exp:22
                  }; //indent:18 exp:8,12,16 warn
        final Supplier<Map<String, List<AbstractExpressionHandler>>> sup6 = //indent:8 exp:8
                new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() //indent:16 exp:>=16
              { //indent:14 exp:8,12,16 warn
                  @Override //indent:18 exp:18
                  public Map<String, List<AbstractExpressionHandler>> get() //indent:18 exp:18
                  { //indent:18 exp:18
                      return null; //indent:22 exp:22
                  } //indent:18 exp:18
              }; //indent:14 exp:8,12,16 warn
    } //indent:4 exp:4
} //indent:0 exp:0