Browse Source

checkstyle

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277105 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
569f22aceb
5 changed files with 7 additions and 6 deletions
  1. +3
    -3
      src/main/org/apache/tools/ant/AntClassLoader.java
  2. +1
    -1
      src/main/org/apache/tools/ant/Executor.java
  3. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Exit.java
  4. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Input.java
  5. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/Sleep.java

+ 3
- 3
src/main/org/apache/tools/ant/AntClassLoader.java View File

@@ -47,7 +47,7 @@ import org.apache.tools.ant.util.LoaderUtils;
*/
public class AntClassLoader extends ClassLoader implements SubBuildListener {

private static final FileUtils fileUtils = FileUtils.newFileUtils();
private static final FileUtils FILE_UTILS = FileUtils.newFileUtils();

/**
* An enumeration of all resources of a given name found within the
@@ -909,7 +909,7 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener {

if (resource.exists()) {
try {
return fileUtils.getFileURL(resource);
return FILE_UTILS.getFileURL(resource);
} catch (MalformedURLException ex) {
return null;
}
@@ -924,7 +924,7 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener {
ZipEntry entry = zipFile.getEntry(resourceName);
if (entry != null) {
try {
return new URL("jar:" + fileUtils.getFileURL(file)
return new URL("jar:" + FILE_UTILS.getFileURL(file)
+ "!/" + entry);
} catch (MalformedURLException ex) {
return null;


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

@@ -27,7 +27,7 @@ public interface Executor {
* Execute the specified Targets for the specified Project.
* @param project the Ant Project.
* @param targetNames String[] of Target names.
* @throws BuildException.
* @throws BuildException on error
*/
void executeTargets(Project project, String[] targetNames)
throws BuildException;


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

@@ -106,7 +106,7 @@ public class Exit extends Task {
* The error message is constructed from the text fields, from
* the nested condition (if specified), or finally from
* the if and unless parameters (if present).
* @throws BuildException
* @throws BuildException on error
*/
public void execute() throws BuildException {
boolean fail = (nestedConditionPresent()) ? testNestedCondition()


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

@@ -95,7 +95,7 @@ public class Input extends Task {

/**
* Actual method executed by ant.
* @throws BuildException
* @throws BuildException on error
*/
public void execute () throws BuildException {
if (addproperty != null


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

@@ -121,6 +121,7 @@ public class Sleep extends Task {
try {
Thread.sleep(millis);
} catch (InterruptedException ie) {
// Ignore Exception
}
}



Loading…
Cancel
Save