From: aclement Date: Fri, 22 Aug 2008 19:08:04 +0000 (+0000) Subject: eclipse: redundant null check X-Git-Tag: V162DEV_M1~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fce5864ed5c5b858ffa813557fa979ea3421466b;p=aspectj.git eclipse: redundant null check --- 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() + ")"); }