From: Alexander Kriegisch Date: Tue, 21 Nov 2023 00:48:37 +0000 (+0700) Subject: AjcTaskTest: unwrap redundant if statement X-Git-Tag: V1_9_21_RC1~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9e09610f1ab49361c68c7d3d6f40ad71fb267f79;p=aspectj.git AjcTaskTest: unwrap redundant if statement Signed-off-by: Alexander Kriegisch --- 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); } }