Skip to content

Commit 63e101b

Browse files
committed
Reformat to 2 spaces
1 parent 828a185 commit 63e101b

File tree

1 file changed

+80
-80
lines changed

1 file changed

+80
-80
lines changed

README.md

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -31,99 +31,99 @@
3131
```java
3232
@Multiple(annotations = "")
3333
@With(
34-
several = "property",
35-
values = {
36-
"one",
37-
"two",
38-
"three"
39-
})
34+
several = "property",
35+
values = {
36+
"one",
37+
"two",
38+
"three"
39+
})
4040
public class MyClass extends MyBase implements Implementable {
4141

42-
public static final String CONSTANT_VALUE = "compile-time-constant";
43-
44-
private static final long CLASS_ID = 1337L;
45-
46-
private final MyDependency dependency;
47-
48-
public MyClass(final MyDependency dependency) {
49-
this.dependency = Objects.requireNonNull(dependency);
50-
51-
final MyCache myCache = new MyExpiringCache(10, MINUTES);
52-
final MyOverlyLongName overlyLongInstance
53-
= new MyOverlyLongName(myCache, "arguments");
54-
final MyThingWithTooManyArgs = new MyThingWithTooManyArgs(
55-
myCache,
56-
overlyLongInstance,
57-
dependency,
58-
"and",
59-
"some",
60-
"more",
61-
"arguments");
42+
public static final String CONSTANT_VALUE = "compile-time-constant";
43+
44+
private static final long CLASS_ID = 1337L;
45+
46+
private final MyDependency dependency;
47+
48+
public MyClass(final MyDependency dependency) {
49+
this.dependency = Objects.requireNonNull(dependency);
50+
51+
final MyCache myCache = new MyExpiringCache(10, MINUTES);
52+
final MyOverlyLongName overlyLongInstance
53+
= new MyOverlyLongName(myCache, "arguments");
54+
final MyThingWithTooManyArgs = new MyThingWithTooManyArgs(
55+
myCache,
56+
overlyLongInstance,
57+
dependency,
58+
"and",
59+
"some",
60+
"more",
61+
"arguments");
62+
}
63+
64+
public static void doSomethingWithManyParameters(
65+
final String action,
66+
final int iterations,
67+
@Annotated
68+
final Object payload) {
69+
if (payload == null) {
70+
return;
6271
}
6372

64-
public static void doSomethingWithManyParameters(
65-
final String action,
66-
final int iterations,
67-
@Annotated
68-
final Object payload) {
69-
if (payload == null) {
70-
return;
71-
}
72-
73-
if (iterations < 0) {
74-
return;
75-
}
76-
77-
for (int i = 0; i < iterations; ++i) {
78-
call(action, payload);
79-
}
80-
81-
callAnotherMethodWithManyParameters(
82-
action,
83-
iterations,
84-
"foo",
85-
"bar",
86-
13,
87-
37);
73+
if (iterations < 0) {
74+
return;
8875
}
8976

90-
public <T> void streams(final Collection<? extends T> elements) {
91-
final List<T> list = elements.stream()
92-
.filter(Objects::nonNull)
93-
.map(x -> transform("mapping", x))
94-
.collect(Collectors.toList());
95-
96-
dependency.send(list);
77+
for (int i = 0; i < iterations; ++i) {
78+
call(action, payload);
9779
}
9880

99-
@Override
100-
public boolean equals(final Object other) {
101-
return other instanceof final MyClass that
102-
&& Objects.equals(that.dependency, dependency);
81+
callAnotherMethodWithManyParameters(
82+
action,
83+
iterations,
84+
"foo",
85+
"bar",
86+
13,
87+
37);
88+
}
89+
90+
public <T> void streams(final Collection<? extends T> elements) {
91+
final List<T> list = elements.stream()
92+
.filter(Objects::nonNull)
93+
.map(x -> transform("mapping", x))
94+
.collect(Collectors.toList());
95+
96+
dependency.send(list);
97+
}
98+
99+
@Override
100+
public boolean equals(final Object other) {
101+
return other instanceof final MyClass that
102+
&& Objects.equals(that.dependency, dependency);
103+
}
104+
105+
@Override
106+
public int hashCode() {
107+
int hash = Objects.hashCode(dependency);
108+
hash = 31 * hash + Objects.hashCode(/*another dependency*/);
109+
return result;
110+
}
111+
112+
private static final class NestedClass
113+
extends AnotherBase
114+
implements Implementable,
115+
Nestable {
116+
private NestedClass() {
103117
}
104118

105-
@Override
106-
public int hashCode() {
107-
int hash = Objects.hashCode(dependency);
108-
hash = 31 * hash + Objects.hashCode(/*another dependency*/);
109-
return result;
119+
public String getName() {
120+
return "name";
110121
}
111122

112-
private static final class NestedClass
113-
extends AnotherBase
114-
implements Implementable,
115-
Nestable {
116-
private NestedClass() {
117-
}
118-
119-
public String getName() {
120-
return "name";
121-
}
122-
123-
public int age() {
124-
return 42;
125-
}
123+
public int age() {
124+
return 42;
126125
}
126+
}
127127
}
128128
```
129129

0 commit comments

Comments
 (0)