Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit b3db834

Browse files
committed
improve formatting
1 parent 77ab12f commit b3db834

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/java9/util/stream/Collectors.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,12 @@ public void accept(T t) {
10401040

10411041
return new CollectorImpl<T, OptionalBox, Optional<T>>(
10421042
OptionalBox::new, OptionalBox::accept,
1043-
(a, b) -> { if (b.present) a.accept(b.value); return a; },
1043+
(a, b) -> {
1044+
if (b.present) {
1045+
a.accept(b.value);
1046+
}
1047+
return a;
1048+
},
10441049
a -> Optional.ofNullable(a.value), CH_NOID);
10451050
}
10461051

0 commit comments

Comments
 (0)