View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.indentation.indentation; //indent:0 exp:0
2   
3   import com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler; //indent:0 exp:0
4   
5   import java.util.List; //indent:0 exp:0
6   import java.util.Map; //indent:0 exp:0
7   import java.util.function.Supplier; //indent:0 exp:0
8   
9   /**                                                                         //indent:0 exp:0
10   * This test-input is intended to be checked using following configuration: //indent:1 exp:1
11   *                                                                          //indent:1 exp:1
12   * arrayInitIndent = 4                                                      //indent:1 exp:1
13   * basicOffset = 4                                                          //indent:1 exp:1
14   * braceAdjustment = 0                                                      //indent:1 exp:1
15   * caseIndent = 4                                                           //indent:1 exp:1
16   * forceStrictCondition = false                                             //indent:1 exp:1
17   * lineWrappingIndentation = 8                                              //indent:1 exp:1
18   * tabWidth = 4                                                             //indent:1 exp:1
19   * throwsIndent = 4                                                         //indent:1 exp:1
20   */                                                                         //indent:1 exp:1
21  public class InputIndentationAnonymousClassInMethodCurlyOnNewLine //indent:0 exp:0
22  { //indent:0 exp:0
23      private void aMethod() //indent:4 exp:4
24      { //indent:4 exp:4
25          final Supplier<Map<String, List<AbstractExpressionHandler>>> sup1 = //indent:8 exp:8
26                  new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() { //indent:16 exp:>=16
27                      @Override //indent:20 exp:20
28                      public Map<String, List<AbstractExpressionHandler>> get() //indent:20 exp:20
29                      { //indent:20 exp:20
30                          return null; //indent:24 exp:24
31                      } //indent:20 exp:20
32                  }; //indent:16 exp:16
33          final Supplier<Map<String, List<AbstractExpressionHandler>>> sup2 = //indent:8 exp:8
34                    new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() { //indent:18 exp:>=16
35                      @Override //indent:20 exp:20
36                      public Map<String, List<AbstractExpressionHandler>> get() //indent:20 exp:20
37                      { //indent:20 exp:20
38                          return null; //indent:24 exp:24
39                      } //indent:20 exp:20
40                    }; //indent:18 exp:8,12,16 warn
41          final Supplier<Map<String, List<AbstractExpressionHandler>>> sup3 = //indent:8 exp:8
42                new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() { //indent:14 exp:>=16 warn
43                      @Override //indent:20 exp:20
44                      public Map<String, List<AbstractExpressionHandler>> get() //indent:20 exp:20
45                      { //indent:20 exp:20
46                          return null; //indent:24 exp:24
47                      } //indent:20 exp:20
48                }; //indent:14 exp:8,12,16 warn
49          final Supplier<Map<String, List<AbstractExpressionHandler>>> sup4 = //indent:8 exp:8
50                  new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() //indent:16 exp:>=16
51                  { //indent:16 exp:16
52                      @Override //indent:20 exp:20
53                      public Map<String, List<AbstractExpressionHandler>> get() //indent:20 exp:20
54                      { //indent:20 exp:20
55                          return null; //indent:24 exp:24
56                      } //indent:20 exp:20
57                  }; //indent:16 exp:16
58          final Supplier<Map<String, List<AbstractExpressionHandler>>> sup5 = //indent:8 exp:8
59                  new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() //indent:16 exp:>=16
60                    { //indent:18 exp:8,12,16 warn
61                        @Override //indent:22 exp:22
62                        public Map<String, List<AbstractExpressionHandler>> get() //indent:22 exp:22
63                        { //indent:22 exp:22
64                            return null; //indent:26 exp:26
65                        } //indent:22 exp:22
66                    }; //indent:18 exp:8,12,16 warn
67          final Supplier<Map<String, List<AbstractExpressionHandler>>> sup6 = //indent:8 exp:8
68                  new Supplier<Map<String, List<com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler>>>() //indent:16 exp:>=16
69                { //indent:14 exp:8,12,16 warn
70                    @Override //indent:18 exp:18
71                    public Map<String, List<AbstractExpressionHandler>> get() //indent:18 exp:18
72                    { //indent:18 exp:18
73                        return null; //indent:22 exp:22
74                    } //indent:18 exp:18
75                }; //indent:14 exp:8,12,16 warn
76      } //indent:4 exp:4
77  } //indent:0 exp:0
78