]> source.dussan.org Git - aspectj.git/commitdiff
removed unnecessary code
authoraclement <aclement>
Fri, 22 Aug 2008 17:10:00 +0000 (17:10 +0000)
committeraclement <aclement>
Fri, 22 Aug 2008 17:10:00 +0000 (17:10 +0000)
ajdoc/testsrc/org/aspectj/tools/ajdoc/BugTests.java
ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java
ajdoc/testsrc/org/aspectj/tools/ajdoc/DeclareFormsTest.java
ajdoc/testsrc/org/aspectj/tools/ajdoc/FullyQualifiedArgumentTest.java
ajdoc/testsrc/org/aspectj/tools/ajdoc/ITDTest.java
ajdoc/testsrc/org/aspectj/tools/ajdoc/PointcutVisibilityTest.java

index c36852c6d837d3807e93e25f4051dad6551d38ad..a1fdc0498bc4185b1016b1d2abd76663d8394f00 100644 (file)
@@ -22,7 +22,7 @@ public class BugTests extends AjdocTestCase {
                runAjdoc(files);
                assertFalse("expected clean build of project but found that build aborted",Main.hasAborted());
                File html = new File(getAbsolutePathOutdir() + File.separator + "C.html");
-               if (html == null || !html.exists()) {
+               if (!html.exists()) {
                        fail("couldn't find " + getAbsolutePathOutdir() + File.separator + "C.html - were there javadoc/compilation errors?");
                }
                assertFalse("expected all decorating tags to be removed but found that they" +
@@ -72,7 +72,7 @@ public class BugTests extends AjdocTestCase {
                runAjdoc(files,"1.5",ajOptions);
                assertFalse("expected clean build of project but found that build aborted",Main.hasAborted());
                File html = new File(getAbsolutePathOutdir() + File.separator + "C.html");
-               if (html == null || !html.exists()) {
+               if (!html.exists()) {
                        fail("couldn't find " + getAbsolutePathOutdir() + File.separator + "C.html - were there javadoc/compilation errors?");
                }
                assertTrue("expected to find 'Advised by' in the html output but did " +
@@ -93,7 +93,7 @@ public class BugTests extends AjdocTestCase {
                runAjdoc(files,"1.5",ajOptions);
                assertFalse("expected clean build of project but found that build aborted",Main.hasAborted());
                File html = new File(getAbsolutePathOutdir() + File.separator + "C.html");
-               if (html == null || !html.exists()) {
+               if (!html.exists()) {
                        fail("couldn't find " + getAbsolutePathOutdir() + File.separator + "C.html - were there javadoc/compilation errors?");
                }
                assertTrue("expected to find 'Advised by' in the html output but did " +
@@ -103,7 +103,7 @@ public class BugTests extends AjdocTestCase {
                                + "META-INF" + File.separator + "aop-ajc.xml");
                assertTrue("couldn't find " + getAbsolutePathOutdir() + File.separator 
                                + "META-INF" + File.separator + "aop-ajc.xml" , 
-                               aopFile != null && aopFile.exists());
+                               aopFile.exists());
        }       
        
        /**
index 40e3f5707686c113e2958747bd387305c85afac9..817ddc06699378ac1b3688fe8264af9e3f535b35 100644 (file)
@@ -64,7 +64,7 @@ public class CoverageTestCase extends AjdocTestCase {
                                " the 'public' flag to ajdoc",htmlFile.exists());
 
         htmlFile = new File(getAbsolutePathOutdir() + "/foo/PlainJava.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -88,7 +88,7 @@ public class CoverageTestCase extends AjdocTestCase {
                File[] files = {new File(getAbsoluteProjectDir() + "/pkg/A.aj")};
                runAjdoc("private","1.4",files);
         File htmlFile = new File(getAbsolutePathOutdir() + "/pkg/A.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()+ " - were there compilation errors?");
                }       
                assertTrue(htmlFile.getAbsolutePath() + " should have Aspect A as it's title",
@@ -102,7 +102,7 @@ public class CoverageTestCase extends AjdocTestCase {
                File[] files = {new File(getAbsoluteProjectDir() + "/pkg/C.java")};
                runAjdoc("private","1.4",files);
         File htmlFile = new File(getAbsolutePathOutdir() + "/pkg/C.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()+ " - were there compilation errors?");
                }       
                assertTrue(htmlFile.getAbsolutePath() + " should have Class C as it's title",
@@ -119,7 +119,7 @@ public class CoverageTestCase extends AjdocTestCase {
         runAjdoc("private","1.4",files);
             
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/ClassA.InnerAspect.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -137,7 +137,7 @@ public class CoverageTestCase extends AjdocTestCase {
                
                // get the html file for the enclosing class
         File htmlFileClass = new File(getAbsolutePathOutdir() + "/foo/ClassA.html");
-               if (htmlFileClass == null || !htmlFileClass.exists()) {
+               if (!htmlFileClass.exists()) {
                        fail("couldn't find " + htmlFileClass.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -163,7 +163,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/AdviceNamingCoverage.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -195,7 +195,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/AdvisesRelationshipCoverage.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -248,7 +248,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -279,7 +279,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -310,7 +310,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -341,7 +341,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -372,7 +372,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -403,7 +403,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -452,7 +452,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -480,7 +480,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -501,7 +501,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -532,7 +532,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/pkg/C2.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
         
@@ -578,7 +578,7 @@ public class CoverageTestCase extends AjdocTestCase {
        runAjdoc("private","1.4",files);
        
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/AdvisesRelationshipCoverage.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
                
@@ -607,7 +607,7 @@ public class CoverageTestCase extends AjdocTestCase {
                runAjdoc("private","1.4",files);        
                
               File htmlFile = new File(getAbsolutePathOutdir() + "/PkgVisibleClass.NestedAspect.html");
-                       if (htmlFile == null || !htmlFile.exists()) {
+                       if (!htmlFile.exists()) {
                                fail("couldn't find " + htmlFile.getAbsolutePath()
                                                + " - were there compilation errors?");
                        }
@@ -653,7 +653,7 @@ public class CoverageTestCase extends AjdocTestCase {
         runAjdoc("private","1.4",files);
             
         File htmlFile = new File(getAbsolutePathOutdir() + "/pkg/ClassWithNestedAspect.NestedAspect.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -699,7 +699,7 @@ public class CoverageTestCase extends AjdocTestCase {
         runAjdoc("private","1.4",files);
             
         File htmlFile = new File(getAbsolutePathOutdir() + "/pkg/ClassWithNestedAspect.NestedAspect.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -730,7 +730,7 @@ public class CoverageTestCase extends AjdocTestCase {
         runAjdoc("private","1.4",files);
             
         File htmlFile = new File(getAbsolutePathOutdir() + "/pkg/ClassWithNestedAspect.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
index cbdce2b26ab50ca7e3c6bd7a9d99b6f4423c09cc..f00a9b10f06749dcb7de3a9e3ecf8dd40e88d790 100644 (file)
@@ -50,7 +50,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.4",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/DeclareCoverage2.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -85,7 +85,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.4",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/DeclareCoverage2.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -117,7 +117,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.4",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Main2.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -149,7 +149,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.4",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point2.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -180,7 +180,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.4",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/DeclareCoverage2.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -211,7 +211,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.4",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point2.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -265,7 +265,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.4",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Main2.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -299,7 +299,7 @@ public class DeclareFormsTest extends AjdocTestCase {
            // detail and summary the declare annotation statement.
                // Check for this....
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/DeclareAtType.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -342,7 +342,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.5",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/C.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
                
@@ -409,7 +409,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.5",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/C.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -443,7 +443,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.5",files);
 
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/C.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -466,7 +466,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.4",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/C.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
@@ -512,7 +512,7 @@ public class DeclareFormsTest extends AjdocTestCase {
                runAjdoc("private","1.4",files);
                
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/DeclareParents.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath()
                                        + " - were there compilation errors?");
                }
index 875ba367c1e33cf7a03ae7f58b012839e85ee746..2d97a82bfa1f1e2e5aa90f1e0d1cdda1bea94d91 100644 (file)
@@ -27,7 +27,7 @@ public class FullyQualifiedArgumentTest extends AjdocTestCase {
         
                // check the contents of A.html
                File htmlA = new File(getAbsolutePathOutdir() + "/pack/A.html");
-               if (htmlA == null || !htmlA.exists()) {
+               if (!htmlA.exists()) {
                        fail("couldn't find " + getAbsolutePathOutdir()
                                        + "/pack/A.html - were there compilation errors?");
                }
index 849718e04d0dfbd33a35769d2701bf901a26d3d4..2c61bc6e825a7431ad4ea76da07df7d72eb28a80 100644 (file)
@@ -26,7 +26,7 @@ public class ITDTest extends AjdocTestCase {
                };
                runAjdoc("private",files);
                File htmlA = new File(getAbsolutePathOutdir() + "/pack/A.html");
-               if (htmlA == null || !htmlA.exists()) {
+               if (!htmlA.exists()) {
                        fail("couldn't find " + getAbsolutePathOutdir() + "/pack/A.html - were there compilation errors?");
                }
 
index dbd7442ffc74dd6766237f0df96d404e66826423..6c5c47905f2cebaca624f86198913533493e5c60 100644 (file)
@@ -83,7 +83,7 @@ public class PointcutVisibilityTest extends AjdocTestCase {
        // (since "private" was an argument)
         // Check that this is the case......
         File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Pointcuts.html");
-               if (htmlFile == null || !htmlFile.exists()) {
+               if (!htmlFile.exists()) {
                        fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
                }
                // check the contents of the pointcut summary