1 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 class InputIndentationCorrectIfAndParameter {
18
19 String getString(int someInt, String someString) {
20 return "String";
21 }
22
23 void fooMethodWithIf() {
24
25 if (conditionFirst("Loooooooooooooooooong", new
26 SecondClassLongNam7("Loooooooooooooooooog").
27 getInteger(new InputIndentationCorrectIfAndParameter(), "Looooog"),
28 new InnerClassFoo())) {}
29
30 if (conditionSecond(10000000000.0, new
31 SecondClassLongNam7("Looooooooooooo"
32 + "oooooooooooong").getString(new InputIndentationCorrectIfAndParameter(),
33 new SecondClassLongNam7("loooooooooong").
34 getInteger(new InputIndentationCorrectIfAndParameter(), "long")), "loong")
35 || conditionThird(2048) || conditionFourth(new
36 SecondClassLongNam7("Looooooooooooooo"
37 + "oo").gB(new InputIndentationCorrectIfAndParameter(), false)) ||
38 conditionFifth(true, new SecondClassLongNam7(getString(2048, "Looo"
39 + "ooooooooooooooooooooooooooooooooooooooooooong")).gB(
40 new InputIndentationCorrectIfAndParameter(), true)) || co(false, new
41 SecondClassLongNam7(getString(100000, "Loooooong"
42 + "Fooooooo><"))) || conditionNoArg()
43 || conditionNoArg() ||
44 conditionNoArg() || conditionNoArg()) {}
45 }
46
47 private boolean conditionFirst(String longString, int
48 integer, InnerClassFoo someInstance) {
49 return false;
50 }
51
52 private boolean conditionSecond(double longLongLongDoubleValue,
53 String longLongLongString, String secondLongLongString) {
54 return false;
55 }
56
57 private boolean conditionThird(long veryLongValue) {
58 return false;
59 }
60
61 private boolean conditionFourth(boolean flag) {
62 return false;
63 }
64
65 private boolean conditionFifth(boolean flag1, boolean flag2) {
66 return false;
67 }
68
69 private boolean co(boolean flag,
70 SecondClassLongNam7 instance) {
71 return false;
72 }
73
74 private boolean conditionNoArg() {
75 return false;
76 }
77
78 class InnerClassFoo {
79
80 void fooMethodWithIf() {
81 if (conditionFirst("Loooooooooooooooooong", new
82 SecondClassLongNam7("Loooooooooooooooooog").
83 getInteger(new InputIndentationCorrectIfAndParameter(), "Log"),
84 new InnerClassFoo())) {}
85
86 if (conditionSecond(10000000000.0, new
87 SecondClassLongNam7("Looooooooooooo"
88 + "ooooooong").getString(new InputIndentationCorrectIfAndParameter(),
89 new SecondClassLongNam7("loooooooooong").
90 getInteger(new InputIndentationCorrectIfAndParameter(), "long")), "l")
91 || conditionThird(2048) || conditionFourth(new
92 SecondClassLongNam7("Looooooooooooooo"
93 + "og").gB(new InputIndentationCorrectIfAndParameter(), false)) ||
94 conditionFifth(true, new SecondClassLongNam7(getString(2048, "Loo"
95 + "ooooooooooooooooooooooooooooooooooooooooooong")).gB(
96 new InputIndentationCorrectIfAndParameter(), true)) ||co(false,new
97 SecondClassLongNam7(getString(100000, "Loooooong"
98 + "Fooooooo><"))) || conditionNoArg()
99 || conditionNoArg() ||
100 conditionNoArg() || conditionNoArg()) {}
101 }
102
103 Object ann = new Object() {
104
105 void fooMethodWithIf(String stringStringStringStringLooooongString,
106 int intIntIntVeryLongNameForIntVariable, boolean
107 fooooooooobooleanBooleanVeryLongName) {
108
109 if (conditionFirst("Loooooooooooooooooong", new
110 SecondClassLongNam7("Loooooooooooooooooog").
111 getInteger(new InputIndentationCorrectIfAndParameter(), "Lg"),
112 new InnerClassFoo())) {}
113
114 if (conditionSecond(10000000000.0, new
115 SecondClassLongNam7("Looooooooooooo"
116 + "oooooong").getString(new InputIndentationCorrectIfAndParameter(),
117 new SecondClassLongNam7("loooooooooong").
118 getInteger(new InputIndentationCorrectIfAndParameter(), "lg")), "l")
119 || conditionThird(2048) || conditionFourth(new
120 SecondClassLongNam7("Looooooooooooooo"
121 + "o").gB(new InputIndentationCorrectIfAndParameter(), false))||
122 conditionFifth(true, new SecondClassLongNam7(getString(2048, "L"
123 + "ooooooooooooooooooooooooooooooooooooooooooong")).gB(
124 new InputIndentationCorrectIfAndParameter(),true))||co(false,new
125 SecondClassLongNam7(getString(100000, "Loooooong"
126 + "Fooooooo><"))) || conditionNoArg()
127 || conditionNoArg() ||
128 conditionNoArg() || conditionNoArg()
129 && fooooooooobooleanBooleanVeryLongName) {}
130 }
131 };
132 }
133 }
134
135 class SecondClassLongNam7 {
136
137 public SecondClassLongNam7(String string) {
138
139 }
140
141 String getString(InputIndentationCorrectIfAndParameter instance, int integer) {
142 return "String";
143 }
144
145 int getInteger(InputIndentationCorrectIfAndParameter instance, String string) {
146 return -1;
147 }
148
149 boolean gB(InputIndentationCorrectIfAndParameter instance,boolean flag){
150 return false;
151 }
152
153 SecondClassLongNam7 getInstance() {
154 return new SecondClassLongNam7("VeryLoooooooooo"
155 + "oongString");
156 }
157 }