From fce5864ed5c5b858ffa813557fa979ea3421466b Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 22 Aug 2008 19:08:04 +0000 Subject: [PATCH] eclipse: redundant null check --- ajdoc/testsrc/org/aspectj/tools/ajdoc/BugTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajdoc/testsrc/org/aspectj/tools/ajdoc/BugTests.java b/ajdoc/testsrc/org/aspectj/tools/ajdoc/BugTests.java index a1fdc0498..647b71b22 100644 --- a/ajdoc/testsrc/org/aspectj/tools/ajdoc/BugTests.java +++ b/ajdoc/testsrc/org/aspectj/tools/ajdoc/BugTests.java @@ -139,7 +139,7 @@ public class BugTests extends AjdocTestCase { File[] files = {new File(getAbsoluteProjectDir() + "/C.java")}; runAjdoc(files); File htmlFile = new File(getAbsolutePathOutdir() + "/C.html"); - if (htmlFile == null || !htmlFile.exists()) { + if (!htmlFile.exists()) { fail("couldn't find " + htmlFile.getAbsolutePath() + " (ajc aborted: " + Main.hasAborted() + ")"); } @@ -169,7 +169,7 @@ public class BugTests extends AjdocTestCase { File[] files = {new File(getAbsoluteProjectDir() + "/C.java")}; runAjdoc(files); File htmlFile = new File(getAbsolutePathOutdir() + "/C.html"); - if (htmlFile == null || !htmlFile.exists()) { + if (!htmlFile.exists()) { fail("couldn't find " + htmlFile.getAbsolutePath() + " (ajc aborted: " + Main.hasAborted() + ")"); } -- 2.39.5