From 2581618debfd1519af6dd37160d0d0942fcff927 Mon Sep 17 00:00:00 2001 From: danielmcnally285 <144589379+danielmcnally285@users.noreply.github.com> Date: Sat, 11 Nov 2023 19:17:28 +0000 Subject: [PATCH] indent fluent apis 2 spaces --- .../ReturnFirstNonEmptyOptionalUnitTest.java | 6 +++--- .../ReturnFirstNonNullLazyEvaluateUnitTest.java | 6 +++--- .../returnfirstnonnull/ReturnFirstNonNullUnitTest.java | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonempty/ReturnFirstNonEmptyOptionalUnitTest.java b/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonempty/ReturnFirstNonEmptyOptionalUnitTest.java index f2ea8f74e3..b05e0e2d34 100644 --- a/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonempty/ReturnFirstNonEmptyOptionalUnitTest.java +++ b/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonempty/ReturnFirstNonEmptyOptionalUnitTest.java @@ -21,9 +21,9 @@ public class ReturnFirstNonEmptyOptionalUnitTest { @Test void givenListOfOptionals_whenStreaming_thenReturnFirstNonEmpty() { Optional object = optionals.stream() - .filter(Optional::isPresent) - .map(Optional::get) - .findFirst(); + .filter(Optional::isPresent) + .map(Optional::get) + .findFirst(); assertThat(object).contains("first non empty"); } diff --git a/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonnull/ReturnFirstNonNullLazyEvaluateUnitTest.java b/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonnull/ReturnFirstNonNullLazyEvaluateUnitTest.java index 649e5f4299..fff348052a 100644 --- a/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonnull/ReturnFirstNonNullLazyEvaluateUnitTest.java +++ b/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonnull/ReturnFirstNonNullLazyEvaluateUnitTest.java @@ -48,9 +48,9 @@ public class ReturnFirstNonNullLazyEvaluateUnitTest { @Test void givenChainOfMethods_whenUsingSupplierInterface_thenLazilyEvaluateMethodsUntilFirstNonNull() { Optional object = Stream.> of(spy::methodA, spy::methodB, spy::methodC) - .map(Supplier::get) - .filter(Objects::nonNull) - .findFirst(); + .map(Supplier::get) + .filter(Objects::nonNull) + .findFirst(); assertThat(object).contains("first non null"); verify(spy, times(1)).methodA(); diff --git a/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonnull/ReturnFirstNonNullUnitTest.java b/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonnull/ReturnFirstNonNullUnitTest.java index aae775997d..e7bb4d399f 100644 --- a/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonnull/ReturnFirstNonNullUnitTest.java +++ b/core-java-modules/core-java-lang-6/src/test/java/com/baeldung/returnfirstnonnull/ReturnFirstNonNullUnitTest.java @@ -28,8 +28,8 @@ public class ReturnFirstNonNullUnitTest { @Test void givenListOfObjects_whenFilterIsLambdaNullCheck_thenReturnFirstNonNull() { Optional object = objects.stream() - .filter(o -> o != null) - .findFirst(); + .filter(o -> o != null) + .findFirst(); assertThat(object).contains("first non null"); } @@ -37,8 +37,8 @@ public class ReturnFirstNonNullUnitTest { @Test void givenListOfObjects_whenFilterIsMethodRefNullCheck_thenReturnFirstNonNull() { Optional object = objects.stream() - .filter(Objects::nonNull) - .findFirst(); + .filter(Objects::nonNull) + .findFirst(); assertThat(object).contains("first non null"); }