ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit DOMUtil.java JUnitResultFormatter.java XMLConstants.java
Date Thu, 13 Sep 2001 09:19:37 GMT
donaldp     01/09/13 02:19:37

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit
                        DOMUtil.java JUnitResultFormatter.java
                        XMLConstants.java
  Log:
  Made codebase not violate the JLS recomendations by removing redundent access specifiers.
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java
  
  Index: DOMUtil.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOMUtil.java	2001/02/02 17:13:22	1.1
  +++ DOMUtil.java	2001/09/13 09:19:37	1.2
  @@ -89,7 +89,7 @@
            * @return      <tt>true</tt> if the node is accepted by this filter,
            *                      otherwise <tt>false</tt>
            */
  -        public boolean accept(Node node);
  +        boolean accept(Node node);
       }
   
       /**
  
  
  
  1.6       +7 -7      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitResultFormatter.java
  
  Index: JUnitResultFormatter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitResultFormatter.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JUnitResultFormatter.java	2001/05/23 16:58:05	1.5
  +++ JUnitResultFormatter.java	2001/09/13 09:19:37	1.6
  @@ -54,6 +54,7 @@
   
   package org.apache.tools.ant.taskdefs.optional.junit;
   
  +import java.io.OutputStream;
   import org.apache.tools.ant.BuildException;
   import junit.framework.TestListener;
   
  @@ -67,26 +68,25 @@
       /**
        * The whole testsuite started.
        */
  -    public void startTestSuite(JUnitTest suite) throws BuildException;
  -
  +    void startTestSuite(JUnitTest suite) throws BuildException;
  +    
       /**
        * The whole testsuite ended.
        */
  -    public void endTestSuite(JUnitTest suite) throws BuildException;
  +    void endTestSuite(JUnitTest suite) throws BuildException;
   
       /**
        * Sets the stream the formatter is supposed to write its results to.
        */
  -    public void setOutput(java.io.OutputStream out);
  +    void setOutput( OutputStream out );
   
       /**
        * This is what the test has written to System.out
        */
  -    public void setSystemOutput( String out );
  +    void setSystemOutput( String out );
   
       /**
        * This is what the test has written to System.err
        */
  -    public void setSystemError( String err );
  -
  +    void setSystemError( String err );
   }
  
  
  
  1.5       +18 -18    jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java
  
  Index: XMLConstants.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XMLConstants.java	2001/07/24 13:28:56	1.4
  +++ XMLConstants.java	2001/09/13 09:19:37	1.5
  @@ -68,57 +68,57 @@
    */
   public interface XMLConstants {
       /** the testsuites element for the aggregate document */
  -    public final static String TESTSUITES = "testsuites";
  +    String TESTSUITES = "testsuites";
   
       /** the testsuite element */
  -    public final static String TESTSUITE = "testsuite";
  +    String TESTSUITE = "testsuite";
   
       /** the testcase element */
  -    public final static String TESTCASE = "testcase";
  +    String TESTCASE = "testcase";
   
       /** the error element */
  -    public final static String ERROR = "error";
  +    String ERROR = "error";
   
       /** the failure element */
  -    public final static String FAILURE = "failure";
  +    String FAILURE = "failure";
   
       /** the system-err element */
  -    public final static String SYSTEM_ERR = "system-err";
  +    String SYSTEM_ERR = "system-err";
   
       /** the system-out element */
  -    public final static String SYSTEM_OUT = "system-out";
  +    String SYSTEM_OUT = "system-out";
   
       /** package attribute for the aggregate document */
  -    public final static String ATTR_PACKAGE = "package";
  +    String ATTR_PACKAGE = "package";
   
       /** name attribute for property, testcase and testsuite elements */
  -    public final static String ATTR_NAME = "name";
  +    String ATTR_NAME = "name";
   
       /** time attribute for testcase and testsuite elements */
  -    public final static String ATTR_TIME = "time";
  +    String ATTR_TIME = "time";
   
       /** errors attribute for testsuite elements */
  -    public final static String ATTR_ERRORS = "errors";
  +    String ATTR_ERRORS = "errors";
   
       /** failures attribute for testsuite elements */
  -    public final static String ATTR_FAILURES = "failures";
  +    String ATTR_FAILURES = "failures";
   
       /** tests attribute for testsuite elements */
  -    public final static String ATTR_TESTS = "tests";
  +    String ATTR_TESTS = "tests";
   
       /** type attribute for failure and error elements */
  -    public final static String ATTR_TYPE = "type";
  +    String ATTR_TYPE = "type";
   
       /** message attribute for failure elements */
  -    public final static String ATTR_MESSAGE = "message";
  +    String ATTR_MESSAGE = "message";
   
       /** the properties element */
  -    public final static String PROPERTIES = "properties";
  +    String PROPERTIES = "properties";
   
       /** the property element */
  -    public final static String PROPERTY = "property";
  +    String PROPERTY = "property";
   
       /** value attribute for property elements */
  -    public final static String ATTR_VALUE = "value";
  +    String ATTR_VALUE = "value";
   
   }
  
  
  

Mime
View raw message