Browse Source

checkstyle

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277124 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
6c310a371f
2 changed files with 7 additions and 3 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/LoadFile.java
  2. +5
    -2
      src/main/org/apache/tools/ant/taskdefs/LoadProperties.java

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

@@ -35,7 +35,7 @@ import org.apache.tools.ant.types.FilterChain;
* @since Ant 1.5 * @since Ant 1.5
* @ant.task category="utility" * @ant.task category="utility"
*/ */
public final class LoadFile extends Task {
public class LoadFile extends Task {


/** /**
* source file, usually null * source file, usually null
@@ -190,6 +190,7 @@ public final class LoadFile extends Task {


/** /**
* Add the FilterChain element. * Add the FilterChain element.
* @param filter the filter to add
*/ */
public final void addFilterChain(FilterChain filter) { public final void addFilterChain(FilterChain filter) {
filterChains.addElement(filter); filterChains.addElement(filter);


+ 5
- 2
src/main/org/apache/tools/ant/taskdefs/LoadProperties.java View File

@@ -24,7 +24,6 @@ import java.io.FileInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.io.Reader; import java.io.Reader;
import java.util.Enumeration;
import java.util.Properties; import java.util.Properties;
import java.util.Vector; import java.util.Vector;
import org.apache.tools.ant.Project; import org.apache.tools.ant.Project;
@@ -41,7 +40,7 @@ import org.apache.tools.ant.types.FilterChain;
* @since Ant 1.5 * @since Ant 1.5
* @ant.task category="utility" * @ant.task category="utility"
*/ */
public final class LoadProperties extends Task {
public class LoadProperties extends Task {


/** /**
* Source file * Source file
@@ -115,6 +114,7 @@ public final class LoadProperties extends Task {


/** /**
* Add a classpath to use when looking up a resource. * Add a classpath to use when looking up a resource.
* @return The classpath to be configured
*/ */
public Path createClasspath() { public Path createClasspath() {
if (this.classpath == null) { if (this.classpath == null) {
@@ -126,6 +126,7 @@ public final class LoadProperties extends Task {
/** /**
* Set the classpath to use when looking up a resource, * Set the classpath to use when looking up a resource,
* given as reference to a <path> defined elsewhere * given as reference to a <path> defined elsewhere
* @param r The reference value
*/ */
public void setClasspathRef(Reference r) { public void setClasspathRef(Reference r) {
createClasspath().setRefid(r); createClasspath().setRefid(r);
@@ -133,6 +134,7 @@ public final class LoadProperties extends Task {


/** /**
* get the classpath used by this <CODE>LoadProperties</CODE>. * get the classpath used by this <CODE>LoadProperties</CODE>.
* @return The classpath
*/ */
public Path getClasspath() { public Path getClasspath() {
return classpath; return classpath;
@@ -245,6 +247,7 @@ public final class LoadProperties extends Task {


/** /**
* Adds a FilterChain. * Adds a FilterChain.
* @param filter the filter to add
*/ */
public final void addFilterChain(FilterChain filter) { public final void addFilterChain(FilterChain filter) {
filterChains.addElement(filter); filterChains.addElement(filter);


Loading…
Cancel
Save