]> source.dussan.org Git - aspectj.git/commitdiff
eclipse: redundant null check
authoraclement <aclement>
Fri, 22 Aug 2008 19:08:04 +0000 (19:08 +0000)
committeraclement <aclement>
Fri, 22 Aug 2008 19:08:04 +0000 (19:08 +0000)
ajdoc/testsrc/org/aspectj/tools/ajdoc/BugTests.java

index a1fdc0498bc4185b1016b1d2abd76663d8394f00..647b71b228f499f7cf0f552a0a7edfdaa0a234e4 100644 (file)
@@ -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() + ")");
                }