1 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation;
2 import java.util.HashMap;
3 import java.util.Map;
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 class InputIndentationMembers {
20
21 boolean flag
22 = conditionFirst("Loooooooooooooooooong", new
23 SecondFieldClassWithVeryVeryVeryLongName("Loooooooooooooooooog").
24 getInteger(new InputIndentationMembers(), "Log"), new InnerClassFoo());
25
26
27 String getString(int someInt, String someString) {
28 return "String";
29 }
30
31 private boolean conditionFirst(String longString, int
32 integer, InnerClassFoo someInstance) {
33 return false;
34 }
35
36 private boolean conditionSecond(double longLongLongDoubleValue,
37 String longLongLongString, String secondLongLongString) {
38 return false;
39 }
40
41 class InnerClassFoo {
42
43 boolean flag
44 = conditionFirst("Loooooooooooooooooong", new
45 SecondFieldClassWithVeryVeryVeryLongName("Loooooooooooooooooog").
46 getInteger(new InputIndentationMembers(), "Loooooooooog"),
47 new InnerClassFoo());
48
49 InputIndentationMembers anonymousClass =
50 new InputIndentationMembers() {
51 boolean secondFlag = conditionSecond(10000000000.0, new
52 SecondFieldClassWithVeryVeryVeryLongName("Looooooooooooo"
53 + "oooooooooooong").getString(new InputIndentationMembers(),
54 new SecondFieldClassWithVeryVeryVeryLongName("looooooong").
55 getInteger(new InputIndentationMembers(), "lg")), "loooong");
56 };
57 }
58 }
59
60 class SecondFieldClassWithVeryVeryVeryLongName {
61
62 public SecondFieldClassWithVeryVeryVeryLongName(String string) {
63
64 }
65
66 String getString(InputIndentationMembers instance, int integer) {
67 return "String";
68 }
69
70 int getInteger(InputIndentationMembers instance, String string) {
71 return -1;
72 }
73
74 boolean getBoolean(InputIndentationMembers instance, boolean flag) {
75 return false;
76 }
77
78 SecondFieldClassWithVeryVeryVeryLongName getInstance() {
79 return new SecondFieldClassWithVeryVeryVeryLongName("VeryLoooooooooo"
80 + "oongString");
81 }
82 }
83
84 abstract class WithAnnotations {
85 @GwtIncompatible("Non-UTF-8"
86 + "Charset")
87 public static final int FOO_CONSTANT = 111;
88
89 private void foo34() {}
90 final Map<String, String>
91 comeMapWithLongName = new HashMap
92 <String, String>();
93
94 @MyAnnotation
95 byte[] getBytesInternal() {
96 return new byte[] {};
97 }
98
99 @MyAnnotation public abstract <K, V> Map<K, V> rowMap();
100 }
101
102 @interface GwtIncompatible {
103 String value();
104 }
105
106 @interface MyAnnotation {}
107
108 @MyAnnotation
109 enum MyEnum{
110
111 }