From b389ecad460657db1c060cd8aa9e484e9d2acecb Mon Sep 17 00:00:00 2001 From: Ulisses Lima Date: Fri, 27 Jan 2023 13:32:59 -0300 Subject: [PATCH] inverting condition to match the article --- .../inmemorycompilation/InMemoryCompilationUnitTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-java-modules/core-java-jvm-3/src/test/java/com/baeldung/inmemorycompilation/InMemoryCompilationUnitTest.java b/core-java-modules/core-java-jvm-3/src/test/java/com/baeldung/inmemorycompilation/InMemoryCompilationUnitTest.java index 410bdca866..f1470879eb 100644 --- a/core-java-modules/core-java-jvm-3/src/test/java/com/baeldung/inmemorycompilation/InMemoryCompilationUnitTest.java +++ b/core-java-modules/core-java-jvm-3/src/test/java/com/baeldung/inmemorycompilation/InMemoryCompilationUnitTest.java @@ -41,7 +41,7 @@ public class InMemoryCompilationUnitTest { boolean result = task.call(); - if (result) { + if (!result) { diagnostics.getDiagnostics() .forEach(d -> LOGGER.error(String.valueOf(d))); } else {