Browse Source

Made codebase not violate the JLS recomendations by removing redundent access specifiers.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269701 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
f9e06784d0
3 changed files with 26 additions and 26 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java
  2. +7
    -7
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitResultFormatter.java
  3. +18
    -18
      src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java View File

@@ -89,7 +89,7 @@ public final class DOMUtil {
* @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);
}

/**


+ 7
- 7
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitResultFormatter.java View File

@@ -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 @@ public interface JUnitResultFormatter extends TestListener {
/**
* 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 );
}

+ 18
- 18
src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java View File

@@ -68,57 +68,57 @@ package org.apache.tools.ant.taskdefs.optional.junit;
*/
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";

}

Loading…
Cancel
Save