Browse Source

Minor formatting changes

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276347 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
40cf93ab71
2 changed files with 6 additions and 6 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Java.java
  2. +5
    -5
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Java.java View File

@@ -578,7 +578,7 @@ public class Java extends Task {
*/
public void setTimeout(Long value) {
timeout = value;
incompatibleWithSpawn |= timeout!=null;
incompatibleWithSpawn |= timeout != null;
}

/**


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

@@ -608,10 +608,10 @@ public class JUnitTask extends Task {
* @since Ant 1.6
*/
public void setTempdir(File tmpDir) {
if(tmpDir!=null) {
if(!tmpDir.exists() || !tmpDir.isDirectory()) {
if (tmpDir!=null) {
if (!tmpDir.exists() || !tmpDir.isDirectory()) {
throw new BuildException(tmpDir.toString()
+" is not a valid temp directory");
+" is not a valid temp directory");
}
}
this.tmpDir = tmpDir;
@@ -1094,7 +1094,7 @@ public class JUnitTask extends Task {
if (timeout == null) {
return null;
}
return new ExecuteWatchdog((long)timeout.intValue());
return new ExecuteWatchdog((long) timeout.intValue());
}

/**
@@ -1331,7 +1331,7 @@ public class JUnitTask extends Task {
* configure from a test; sets member variables to attributes of the test
* @param test
*/
public ForkedTestConfiguration(JUnitTest test) {
ForkedTestConfiguration(JUnitTest test) {
this(test.getFiltertrace(),
test.getHaltonerror(),
test.getHaltonfailure(),


Loading…
Cancel
Save