diff options
-rw-r--r-- | ajdoc/testsrc/org/aspectj/tools/ajdoc/BugTests.java | 4 |
1 files 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() + ")"); } |