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))
41 || co(false, new
42 SecondClassLongNam7(getString(100000, "Loooooong"
43 + "Fooooooo><"))) || conditionNoArg()
44 || conditionNoArg() ||
45 conditionNoArg() || conditionNoArg()) {}
46 }
47
48 private boolean conditionFirst(String longString, int
49 integer, InnerClassFoo someInstance) {
50 return false;
51 }
52
53 private boolean conditionSecond(double longLongLongDoubleValue,
54 String longLongLongString, String secondLongLongString) {
55 return false;
56 }
57
58 private boolean conditionThird(long veryLongValue) {
59 return false;
60 }
61
62 private boolean conditionFourth(boolean flag) {
63 return false;
64 }
65
66 private boolean conditionFifth(boolean flag1, boolean flag2) {
67 return false;
68 }
69
70 private boolean co(boolean flag,
71 SecondClassLongNam7 instance) {
72 return false;
73 }
74
75 private boolean conditionNoArg() {
76 return false;
77 }
78
79 class InnerClassFoo {
80
81 void fooMethodWithIf() {
82 if (conditionFirst("Loooooooooooooooooong", new
83 SecondClassLongNam7("Loooooooooooooooooog").
84 getInteger(new InputIndentationCorrectIfAndParameter(), "Log"),
85 new InnerClassFoo())) {}
86
87 if (conditionSecond(10000000000.0, new
88 SecondClassLongNam7("Looooooooooooo"
89 + "ooooooong").getString(new InputIndentationCorrectIfAndParameter(),
90 new SecondClassLongNam7("loooooooooong").
91 getInteger(new InputIndentationCorrectIfAndParameter(), "long")), "l")
92 || conditionThird(2048) || conditionFourth(new
93 SecondClassLongNam7("Looooooooooooooo"
94 + "og").gB(new InputIndentationCorrectIfAndParameter(), false)) ||
95 conditionFifth(true, new SecondClassLongNam7(getString(2048, "Loo"
96 + "ooooooooooooooooooooooooooooooooooooooooooong")).gB(
97 new InputIndentationCorrectIfAndParameter(), true))
98 ||co(false,new
99 SecondClassLongNam7(getString(100000, "Loooooong"
100 + "Fooooooo><"))) || conditionNoArg()
101 || conditionNoArg() ||
102 conditionNoArg() || conditionNoArg()) {}
103 }
104
105 Object ann = new Object() {
106
107 void fooMethodWithIf(String stringStringStringStringLooooongString,
108 int intIntIntVeryLongNameForIntVariable, boolean
109 fooooooooobooleanBooleanVeryLongName) {
110
111 if (conditionFirst("Loooooooooooooooooong", new
112 SecondClassLongNam7("Loooooooooooooooooog").
113 getInteger(new InputIndentationCorrectIfAndParameter(), "Lg"),
114 new InnerClassFoo())) {}
115
116 if (conditionSecond(10000000000.0, new
117 SecondClassLongNam7("Looooooooooooo"
118 + "oooooong").getString(new InputIndentationCorrectIfAndParameter(),
119 new SecondClassLongNam7("loooooooooong").
120 getInteger(new InputIndentationCorrectIfAndParameter(), "lg")), "l")
121 || conditionThird(2048) || conditionFourth(new
122 SecondClassLongNam7("Looooooooooooooo"
123 + "o").gB(new InputIndentationCorrectIfAndParameter(), false))||
124 conditionFifth(true, new SecondClassLongNam7(getString(2048, "L"
125 + "ooooooooooooooooooooooooooooooooooooooooooong")).gB(
126 new InputIndentationCorrectIfAndParameter(),true))
127 || co(false, new
128 SecondClassLongNam7(getString(100000, "Loooooong"
129 + "Fooooooo><"))) || conditionNoArg()
130 || conditionNoArg() ||
131 conditionNoArg() || conditionNoArg()
132 && fooooooooobooleanBooleanVeryLongName) {}
133 }
134 };
135 }
136 }
137
138 class SecondClassLongNam7 {
139
140 public SecondClassLongNam7(String string) {
141
142 }
143
144 String getString(InputIndentationCorrectIfAndParameter instance, int integer) {
145 return "String";
146 }
147
148 int getInteger(InputIndentationCorrectIfAndParameter instance, String string) {
149 return -1;
150 }
151
152 boolean gB(InputIndentationCorrectIfAndParameter instance,boolean flag){
153 return false;
154 }
155
156 SecondClassLongNam7 getInstance() {
157 return new SecondClassLongNam7("VeryLoooooooooo"
158 + "oongString");
159 }
160 }