From 9e09610f1ab49361c68c7d3d6f40ad71fb267f79 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Tue, 21 Nov 2023 07:48:37 +0700 Subject: [PATCH] AjcTaskTest: unwrap redundant if statement Signed-off-by: Alexander Kriegisch --- .../test/java/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/taskdefs/src/test/java/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java b/taskdefs/src/test/java/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java index 0281d66d4..eefb37ad6 100644 --- a/taskdefs/src/test/java/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java +++ b/taskdefs/src/test/java/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java @@ -1028,9 +1028,7 @@ public class AjcTaskTest extends TestCase { holder, kind + " expected " + num + " got " + actual); } - if (num != actual){ - System.out.println("===\n"+Arrays.toString(holder.getMessages(kind, false))+"\n===\n"); - } + System.out.println("===\n" + Arrays.toString(holder.getMessages(kind, false)) + "\n===\n"); assertEquals(kind.toString(), num, actual); } } -- 2.39.5