From dc0d6a41d691d341ac1e686ae5609e24b1ac6fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Wed, 11 Oct 2023 08:58:49 +0200 Subject: [PATCH] Polish --- .../java/org/springframework/core/test/tools/TestCompiler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-core-test/src/main/java/org/springframework/core/test/tools/TestCompiler.java b/spring-core-test/src/main/java/org/springframework/core/test/tools/TestCompiler.java index ba88738f2f..14321abb25 100644 --- a/spring-core-test/src/main/java/org/springframework/core/test/tools/TestCompiler.java +++ b/spring-core-test/src/main/java/org/springframework/core/test/tools/TestCompiler.java @@ -393,7 +393,7 @@ public final class TestCompiler { } boolean hasReportedErrors() { - return this.message.length() > 0; + return !this.message.isEmpty(); } @Override