Minor whitespace fix (#10202)

This commit is contained in:
ashleyfrieze 2020-10-25 10:48:57 +00:00 committed by GitHub
parent 679d45ca37
commit 32ae02a1d0
1 changed files with 6 additions and 4 deletions

View File

@ -16,14 +16,16 @@ public class UsingOptional {
}
public String findFirst() {
return getList().stream()
return getList()
.stream()
.findFirst()
.orElse(DEFAULT_VALUE);
}
public Optional<String> findOptionalFirst() {
return getList().stream()
return getList()
.stream()
.findFirst();
}
@ -32,8 +34,8 @@ public class UsingOptional {
}
public Optional<String> optionalListFirst() {
return getOptionalList().flatMap(
list -> list.stream().findFirst());
return getOptionalList()
.flatMap(list -> list.stream().findFirst());
}
private Optional<List> getOptionalList() {