]> source.dussan.org Git - aspectj.git/commitdiff
AjcTaskTest: unwrap redundant if statement
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Tue, 21 Nov 2023 00:48:37 +0000 (07:48 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Tue, 21 Nov 2023 00:48:37 +0000 (07:48 +0700)
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
taskdefs/src/test/java/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java

index 0281d66d4238396fe3a340a75be98472b0c0f8dd..eefb37ad62727b65c78d5e3e7f75f6016896b3a0 100644 (file)
@@ -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);
                                }
                        }