diff --git a/src/main/org/apache/tools/ant/Diagnostics.java b/src/main/org/apache/tools/ant/Diagnostics.java
index 7434433cf..6717ae818 100644
--- a/src/main/org/apache/tools/ant/Diagnostics.java
+++ b/src/main/org/apache/tools/ant/Diagnostics.java
@@ -84,7 +84,7 @@ public final class Diagnostics {
/**
* Doesn't do anything.
* @deprecated Obsolete since Ant 1.8.2
- * @return true
+ * @return true
*/
@Deprecated
public static boolean isOptionalAvailable() {
@@ -103,7 +103,7 @@ public final class Diagnostics {
* return the list of jar files existing in ANT_HOME/lib
* and that must have been picked up by Ant script.
* @return the list of jar files existing in ant.home/lib or
- * null if an error occurs.
+ * null if an error occurs.
*/
public static File[] listLibraries() {
String home = System.getProperty(MagicNames.ANT_HOME);
@@ -467,7 +467,7 @@ public final class Diagnostics {
* because Ant requires multiple libraries to compile and one of them
* was missing when compiling Ant.
* @param out the stream to print the tasks report to
- * null for a missing stream (ie mapping).
+ * null for a missing stream (ie mapping).
*/
private static void doReportTasksAvailability(PrintStream out) {
InputStream is = Main.class.getResourceAsStream(
diff --git a/src/main/org/apache/tools/ant/TaskConfigurationChecker.java b/src/main/org/apache/tools/ant/TaskConfigurationChecker.java
index ce6bcf653..862a8a9c0 100644
--- a/src/main/org/apache/tools/ant/TaskConfigurationChecker.java
+++ b/src/main/org/apache/tools/ant/TaskConfigurationChecker.java
@@ -23,8 +23,8 @@ import java.util.List;
/**
*
Helper class for the check of the configuration of a given task.
* This class provides methods for making assumptions about the task configuration.
- * After collecting all violations with assert* and fail
- * methods the checkErrors will throw a BuildException with all collected
+ * After collecting all violations with assert* and fail
+ * methods the checkErrors will throw a BuildException with all collected
* messages or does nothing if there wasn't any error.
Example:
diff --git a/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java b/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java index 4925f5413..aecc38cfa 100644 --- a/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java +++ b/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java @@ -82,7 +82,7 @@ public class ExecuteWatchdog implements TimeoutObserver { /** * Watches the given process and terminates it, if it runs for too long. * All information from the previous run are reset. - * @param process the process to monitor. It cannot be null + * @param process the process to monitor. It cannot benull
* @throws IllegalStateException if a process is still being monitored.
*/
public synchronized void start(Process process) {
@@ -160,8 +160,8 @@ public class ExecuteWatchdog implements TimeoutObserver {
/**
* Indicates whether or not the watchdog is still monitoring the process.
- * @return true if the process is still running, otherwise
- * false.
+ * @return true if the process is still running, otherwise
+ * false.
*/
public boolean isWatching() {
return watch;
@@ -169,8 +169,8 @@ public class ExecuteWatchdog implements TimeoutObserver {
/**
* Indicates whether the last process run was killed on timeout or not.
- * @return true if the process was killed otherwise
- * false.
+ * @return true if the process was killed otherwise
+ * false.
*/
public boolean killedProcess() {
return killedProcess;
diff --git a/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java b/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
index a96a84d8f..94a192ac5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
@@ -138,7 +138,7 @@ public class ManifestTask extends Task {
* alphanum: {A-Z} | {a-z} | {0-9}
* headerchar: alphanum | - | _
*
- * So the resulting regexp would be [A-Za-z0-9][A-Za-z0-9-_]*.
+ * So the resulting regexp would be [A-Za-z0-9][A-Za-z0-9-_]*.
*
* Because of JDK 1.2 compliance and the possible absence of a
* regexp matcher we can not use regexps here. Instead we have to
diff --git a/src/main/org/apache/tools/ant/taskdefs/Property.java b/src/main/org/apache/tools/ant/taskdefs/Property.java
index 34455a066..9cf6c674b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Property.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Property.java
@@ -601,7 +601,7 @@ public class Property extends Task {
* definition.
* @param props The property object to load into
* @param is The input stream from where to load
- * @param isXml true if we should try to load from xml
+ * @param isXml true if we should try to load from xml
* @throws IOException if something goes wrong
* @since 1.8.0
* @see "http://java.sun.com/dtd/properties.dtd"
diff --git a/src/main/org/apache/tools/ant/taskdefs/Rmic.java b/src/main/org/apache/tools/ant/taskdefs/Rmic.java
index 55cb8bce9..8b31992ab 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Rmic.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Rmic.java
@@ -68,7 +68,7 @@ import org.apache.tools.ant.util.facade.FacadeTaskHelper;
*
* It is possible to use different compilers. This can be selected
* with the "build.rmic" property or the compiler
- * attribute. There are three choices:
signjar attribute can point to the file to generate; if this file
* exists then its modification date is used as a cue as to whether to resign
* any JAR file.
*
diff --git a/src/main/org/apache/tools/ant/taskdefs/Transform.java b/src/main/org/apache/tools/ant/taskdefs/Transform.java
index 9fd15d1fe..44b7e780e 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Transform.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Transform.java
@@ -22,7 +22,7 @@ package org.apache.tools.ant.taskdefs;
* Has been merged into ExecuteOn, empty class for backwards compatibility.
* We leave that in case that external programs access this class directly,
* for example via
- * Transform tr = (Transform) getProject().createTask("apply")
+ * Transform tr = (Transform) getProject().createTask("apply")
*
* @ant.task ignore="true"
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/War.java b/src/main/org/apache/tools/ant/taskdefs/War.java
index 146d3258e..5c55798ba 100644
--- a/src/main/org/apache/tools/ant/taskdefs/War.java
+++ b/src/main/org/apache/tools/ant/taskdefs/War.java
@@ -72,7 +72,7 @@ public class War extends Jar {
/**
* Deprecated name of the file to create
- * -use destfile instead.
+ * -use destfile instead.
* @param warFile the destination file
* @deprecated since 1.5.x.
* Use setDestFile(File) instead
@@ -85,7 +85,7 @@ public class War extends Jar {
/**
* set the deployment descriptor to use (WEB-INF/web.xml);
- * required unless update=true
+ * required unless update=true
* @param descr the deployment descriptor file
*/
public void setWebxml(File descr) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java b/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java
index 617790a4a..a3dcfddee 100644
--- a/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java
+++ b/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java
@@ -31,7 +31,7 @@ public interface XSLTLiaison {
/**
* the file protocol prefix for systemid.
* This file protocol must be appended to an absolute path.
- * Typically: FILE_PROTOCOL_PREFIX + file.getAbsolutePath()
+ * Typically: FILE_PROTOCOL_PREFIX + file.getAbsolutePath()
* Note that on Windows, an extra '/' must be appended to the
* protocol prefix so that there is always 3 consecutive slashes.
* @since Ant 1.4
diff --git a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
index 4ad419bc5..fb8baad8c 100644
--- a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
+++ b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
@@ -480,7 +480,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Set the destination directory into which the XSL result
* files should be copied to;
- * required, unless in and out are
+ * required, unless in and out are
* specified.
* @param dir the name of the destination directory
**/
@@ -736,7 +736,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Specifies the output name for the styled result from the
- * in attribute; required if in is set
+ * in attribute; required if in is set
*
* @param outFile the output File instance.
*/
@@ -746,7 +746,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* specifies a single XML document to be styled. Should be used
- * with the out attribute; required if out is set
+ * with the out attribute; required if out is set
*
* @param inFile the input file
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/condition/Xor.java b/src/main/org/apache/tools/ant/taskdefs/condition/Xor.java
index ec3e213fe..44bf8c350 100644
--- a/src/main/org/apache/tools/ant/taskdefs/condition/Xor.java
+++ b/src/main/org/apache/tools/ant/taskdefs/condition/Xor.java
@@ -21,7 +21,7 @@ import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.util.StreamUtils;
/**
- * The Xor condition type to exclusive or operations.
+ * The Xor condition type to exclusive or operations.
* This does not shortcut stuff.
* @since Ant 1.7
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java b/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
index 256e4dbee..db6045130 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
@@ -164,8 +164,8 @@ public class EchoProperties extends Task {
* If true, the task will fail if an error occurs writing the properties
* file, otherwise errors are just logged.
*
- * @param failonerror true if IO exceptions are reported as build
- * exceptions, or false if IO exceptions are ignored.
+ * @param failonerror true if IO exceptions are reported as build
+ * exceptions, or false if IO exceptions are ignored.
*/
public void setFailOnError(boolean failonerror) {
this.failonerror = failonerror;
@@ -174,7 +174,7 @@ public class EchoProperties extends Task {
/**
* If the prefix is set, then only properties which start with this
* prefix string will be recorded. If regex is not set and if this
- * is never set, or it is set to an empty string or null,
+ * is never set, or it is set to an empty string or null,
* then all properties will be recorded.
*
* For example, if the attribute is set as:
@@ -197,7 +197,7 @@ public class EchoProperties extends Task { /** * If the regex is set, then only properties whose names match it * will be recorded. If prefix is not set and if this is never set, - * or it is set to an empty string or null, then all + * or it is set to an empty string ornull, then all
* properties will be recorded.
*
* For example, if the attribute is set as:
@@ -333,7 +333,7 @@ public class EchoProperties extends Task { /** * Send the key/value pairs in the hashtable to the given output stream. - * Only those properties matching the prefix constraint will be + * Only those properties matching theprefix constraint will be
* sent to the output stream.
* The output stream will be closed when this method returns.
*
@@ -464,8 +464,8 @@ public class EchoProperties extends Task {
/**
* JDK 1.2 allows for the safer method
- * Properties.store(OutputStream, String), which throws an
- * IOException on an output error.
+ * Properties.store(OutputStream, String), which throws an
+ * IOException on an output error.
*
* @param props the properties to record
* @param os record the properties to this output stream
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java b/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java
index 65a934bd0..a3e4c733c 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java
@@ -205,7 +205,7 @@ public class Rpm extends Task {
* The directory which will have the expected
* subdirectories, SPECS, SOURCES, BUILD, SRPMS; optional.
* If this isn't specified,
- * the baseDir value is used
+ * the baseDir value is used
*
* @param td the directory containing the normal RPM directories.
*/
@@ -253,7 +253,7 @@ public class Rpm extends Task {
/**
* Flag (optional, default=false)
* to remove the sources after the build.
- * See the --rmsource option of rpmbuild.
+ * See the --rmsource option of rpmbuild.
* @param rs a boolean value.
*/
public void setRemoveSource(boolean rs) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java b/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java
index 1b85f2875..9c15afb3a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java
@@ -340,7 +340,7 @@ public class JJTree extends Task {
*
* @param destFile String
* @param outputDir String
- * @return validation file, relative if possible; null if not set
+ * @return validation file, relative if possible; null if not set
* @throws BuildException if something goes wrong
*/
private String validateOutputFile(String destFile,
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java
index 09e13f27e..54cc3b901 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java
@@ -162,8 +162,8 @@ public class JDependTask extends Task {
/**
* If true, forks into a new JVM. Default: false.
*
- * @param value true if a JVM should be forked,
- * otherwise false
+ * @param value true if a JVM should be forked,
+ * otherwise false
*/
public void setFork(boolean value) {
fork = value;
@@ -179,8 +179,8 @@ public class JDependTask extends Task {
/**
* The command used to invoke a forked Java Virtual Machine.
*
- * Default is java. Ignored if no JVM is forked.
- * @param value the new VM to use instead of java
+ * Default is java. Ignored if no JVM is forked.
+ * @param value the new VM to use instead of java
* @see #setFork(boolean)
*/
public void setJvm(String value) {
@@ -537,10 +537,10 @@ public class JDependTask extends Task {
/**
* Execute the task by forking a new JVM. The command will block until
* it finishes. To know if the process was destroyed or not, use the
- * killedProcess() method of the watchdog class.
+ * killedProcess() method of the watchdog class.
* @param commandline the commandline for forked jvm
* @param watchdog the watchdog in charge of cancelling the test if it
- * exceeds a certain amount of time. Can be null.
+ * exceeds a certain amount of time. Can be null.
* @return the result of running the jdepend
* @throws BuildException in case of error
*/
@@ -616,7 +616,7 @@ public class JDependTask extends Task {
}
/**
- * @return null if there is a timeout value, otherwise the
+ * @return null if there is a timeout value, otherwise the
* watchdog instance.
* @throws BuildException in case of error
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
index c19568337..e6e93b3f8 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
@@ -128,7 +128,7 @@ public class AggregateTransformer {
*/
private static volatile int counter = 0;
- /** the format to use for the report. Must be FRAMES or NOFRAMES */
+ /** the format to use for the report. Must be FRAMES or NOFRAMES */
protected String format = FRAMES;
// CheckStyle:VisibilityModifier ON
@@ -154,7 +154,7 @@ public class AggregateTransformer {
/**
* sets the format.
- * @param format Must be FRAMES or NOFRAMES
+ * @param format Must be FRAMES or NOFRAMES
*/
public void setFormat(Format format) {
this.format = format.getValue();
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java
index 6e120c4ae..5392b0702 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java
@@ -191,7 +191,7 @@ public abstract class BaseTest {
/**
* Get the destination directory.
* @return the destination directory as an absolute path if it exists
- * otherwise return null
+ * otherwise return null
*/
public String getTodir() {
if (destDir != null) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
index 51ad7d10c..b3ef20672 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
@@ -61,7 +61,7 @@ public final class BatchTest extends BaseTest {
/**
* Add a new fileset instance to this batchtest. Whatever the fileset is,
- * only filename that are .java or .class will be
+ * only filename that are .java or .class will be
* considered as 'candidates'.
* @param fs the new fileset containing the rules to get the testcases.
*/
@@ -84,7 +84,7 @@ public final class BatchTest extends BaseTest {
/**
* Add a new ResourceCollection instance to this
* batchtest. Whatever the collection is, only names that are
- * .java or .class will be considered as
+ * .java or .class will be considered as
* 'candidates'.
* @param rc the new ResourceCollection containing the rules to
* get the testcases.
@@ -95,17 +95,17 @@ public final class BatchTest extends BaseTest {
}
/**
- * Return all JUnitTest instances obtain by applying the fileset rules.
+ * Return all JUnitTest instances obtain by applying the fileset rules.
* @return an enumeration of all elements of this batchtest that are
- * a JUnitTest instance.
+ * a JUnitTest instance.
*/
public EnumerationJUnitTests of this batchtest
+ * to a Vector.
* @param v the vector to which should be added all individual tests of this
* batch test.
*/
@@ -118,9 +118,9 @@ public final class BatchTest extends BaseTest {
}
/**
- * Create all JUnitTests based on the filesets. Each instance
+ * Create all JUnitTests based on the filesets. Each instance
* is configured to match this instance properties.
- * @return the array of all JUnitTests that belongs to this batch.
+ * @return the array of all JUnitTests that belongs to this batch.
*/
private JUnitTest[] createAllJUnitTest() {
return Stream.of(getFilenames()).map(BatchTest::javaToClass)
@@ -129,13 +129,13 @@ public final class BatchTest extends BaseTest {
/**
* Iterate over all filesets and return the filename of all files
- * that end with .java or .class. This is to avoid
- * wrapping a JUnitTest over an xml file for example. A Testcase
+ * that end with .java or .class. This is to avoid
+ * wrapping a JUnitTest over an xml file for example. A Testcase
* is obviously a java file (compiled or not).
* @return an array of filenames without their extension. As they should
* normally be taken from their root, filenames should match their fully
* qualified class name (If it is not the case it will fail when running the test).
- * For the class org/apache/Whatever.class it will return org/apache/Whatever.
+ * For the class org/apache/Whatever.class it will return org/apache/Whatever.
*/
private String[] getFilenames() {
return resources.stream().filter(Resource::isExists)
@@ -147,8 +147,8 @@ public final class BatchTest extends BaseTest {
/**
* Convenient method to convert a pathname without extension to a
- * fully qualified classname. For example org/apache/Whatever will
- * be converted to org.apache.Whatever
+ * fully qualified classname. For example org/apache/Whatever will
+ * be converted to org.apache.Whatever
* @param filename the filename to "convert" to a classname.
* @return the classname matching the filename.
*/
@@ -158,11 +158,11 @@ public final class BatchTest extends BaseTest {
}
/**
- * Create a JUnitTest that has the same property as this
- * BatchTest instance.
+ * Create a JUnitTest that has the same property as this
+ * BatchTest instance.
* @param classname the name of the class that should be run as a
- * JUnitTest. It must be a fully qualified name.
- * @return the JUnitTest over the given classname.
+ * JUnitTest. It must be a fully qualified name.
+ * @return the JUnitTest over the given classname.
*/
private JUnitTest createJUnitTest(String classname) {
JUnitTest test = new JUnitTest();
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/CustomJUnit4TestAdapterCache.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/CustomJUnit4TestAdapterCache.java
index 5b04c3724..7097a41b3 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/CustomJUnit4TestAdapterCache.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/CustomJUnit4TestAdapterCache.java
@@ -30,7 +30,7 @@ import org.junit.runner.notification.RunNotifier;
/**
* Provides a custom implementation of the notifier for a JUnit4TestAdapter
* so that skipped and ignored tests can be reported to the existing
- * TestListeners.
+ * TestListeners.
*
*/
public class CustomJUnit4TestAdapterCache extends JUnit4TestAdapterCache {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java
index cb9ab81e5..c11d26db6 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java
@@ -43,13 +43,13 @@ public final class DOMUtil {
/**
* Filter interface to be applied when iterating over a DOM tree.
- * Just think of it like a FileFilter clone.
+ * Just think of it like a FileFilter clone.
*/
public interface NodeFilter {
/**
* @param node the node to check for acceptance.
- * @return true if the node is accepted by this filter,
- * otherwise false
+ * @return true if the node is accepted by this filter,
+ * otherwise false
*/
boolean accept(Node node);
}
@@ -59,8 +59,8 @@ public final class DOMUtil {
* recursively or not.
* @param parent the parent node to search from
* @param filter the filter that children should match.
- * @param recurse true if you want the list to be made recursively
- * otherwise false.
+ * @param recurse true if you want the list to be made recursively
+ * otherwise false.
* @return the node list that matches the filter.
*/
public static NodeList listChildNodes(Node parent, NodeFilter filter, boolean recurse) {
@@ -116,8 +116,8 @@ public final class DOMUtil {
* return the attribute value of an element.
* @param node the node to get the attribute from.
* @param name the name of the attribute we are looking for the value.
- * @return the value of the requested attribute or null if the
- * attribute was not found or if node is not an Element.
+ * @return the value of the requested attribute or null if the
+ * attribute was not found or if node is not an Element.
*/
public static String getNodeAttribute(Node node, String name) {
if (node instanceof Element) {
@@ -131,10 +131,10 @@ public final class DOMUtil {
/**
* Iterate over the children of a given node and return the first node
* that has a specific name.
- * @param parent the node to search child from. Can be null.
- * @param tagname the child name we are looking for. Cannot be null.
- * @return the first child that matches the given name or null if
- * the parent is null or if a child does not match the
+ * @param parent the node to search child from. Can be null.
+ * @param tagname the child name we are looking for. Cannot be null.
+ * @return the first child that matches the given name or null if
+ * the parent is null or if a child does not match the
* given name.
*/
public static Element getChildByTagName(Node parent, String tagname) {
@@ -155,15 +155,15 @@ public final class DOMUtil {
/**
* Simple tree walker that will clone recursively a node. This is to
- * avoid using parser-specific API such as Sun's changeNodeOwner
- * when we are dealing with DOM L1 implementations since cloneNode(boolean)
+ * avoid using parser-specific API such as Sun's changeNodeOwner
+ * when we are dealing with DOM L1 implementations since cloneNode(boolean)
* will not change the owner document.
- * changeNodeOwner is much faster and avoid the costly cloning process.
- * importNode is in the DOM L2 interface.
+ * changeNodeOwner is much faster and avoid the costly cloning process.
+ * importNode is in the DOM L2 interface.
* @param parent the node parent to which we should do the import to.
* @param child the node to clone recursively. Its clone will be
- * appended to parent.
- * @return the cloned node that is appended to parent
+ * appended to parent.
+ * @return the cloned node that is appended to parent
*/
public static Node importNode(Node parent, Node child) {
final Document doc = parent.getOwnerDocument();
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java
index 649754b4e..51c8a0cb5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java
@@ -50,7 +50,7 @@ public final class Enumerations {
/**
* creates an enumeration from an array of enumeration. The created enumeration
* will sequentially enumerate over all elements of each enumeration and skip
- * null enumeration elements in the array.
+ * null enumeration elements in the array.
* @param This property is applied on all BatchTest (batchtest) and * JUnitTest (test) however it can possibly be overridden by their * own properties.
- * @param value false if it should not filter, otherwise - * true + * @param valuefalse if it should not filter, otherwise
+ * true
*
* @since Ant 1.5
*/
@@ -233,8 +233,8 @@ public class JUnitTask extends Task {
* This property is applied on all BatchTest (batchtest) and JUnitTest
* (test) however it can possibly be overridden by their own
* properties.
- * @param value true if it should halt, otherwise
- * false
+ * @param value true if it should halt, otherwise
+ * false
*
* @since Ant 1.2
*/
@@ -263,8 +263,8 @@ public class JUnitTask extends Task {
* This property is applied on all BatchTest (batchtest) and
* JUnitTest (test) however it can possibly be overridden by their
* own properties.
- * @param value true if it should halt, otherwise
- * false
+ * @param value true if it should halt, otherwise
+ * false
*
* @since Ant 1.2
*/
@@ -294,8 +294,8 @@ public class JUnitTask extends Task {
* hanging the build. this property is applied on all BatchTest
* (batchtest) and JUnitTest (test) however it can possibly be
* overridden by their own properties.
- * @param value true if a JVM should be forked, otherwise
- * false
+ * @param value true if a JVM should be forked, otherwise
+ * false
* @see #setTimeout
*
* @since Ant 1.2
@@ -350,9 +350,9 @@ public class JUnitTask extends Task {
*
* Can take the values on, off, and withOutAndErr.
*
- * @param value true to print a summary,
- * withOutAndErr to include the test's output as
- * well, false otherwise.
+ * @param value true to print a summary,
+ * withOutAndErr to include the test's output as
+ * well, false otherwise.
* @see SummaryJUnitResultFormatter
* @since Ant 1.2
*/
@@ -405,7 +405,7 @@ public class JUnitTask extends Task {
/**
* Set the maximum memory to be used by all forked JVMs.
*
- * @param max the value as defined by -mx or -Xmx
+ * @param max the value as defined by -mx or -Xmx
* in the java command line options.
* @since Ant 1.2
*/
@@ -418,7 +418,7 @@ public class JUnitTask extends Task {
* default is 'java'. The command is resolved by
* java.lang.Runtime.exec(). Ignored if fork is disabled.
*
- * @param value the new VM to use instead of java
+ * @param value the new VM to use instead of java
* @see #setFork(boolean)
*
* @since Ant 1.2
@@ -1139,9 +1139,9 @@ public class JUnitTask extends Task {
* attributes of the returned holder object.
* @param test the testcase to execute.
* @param watchdog the watchdog in charge of cancelling the test if it
- * exceeds a certain amount of time. Can be null, in this case
+ * exceeds a certain amount of time. Can be null, in this case
* the test could probably hang forever.
- * @param casesFile list of test cases to execute. Can be null,
+ * @param casesFile list of test cases to execute. Can be null,
* in this case only one test is executed.
* @return the test results from the JVM itself.
* @throws BuildException in case of error creating a temporary property file,
@@ -1629,7 +1629,7 @@ public class JUnitTask extends Task {
}
/**
- * @return null if there is a timeout value, otherwise the
+ * @return null if there is a timeout value, otherwise the
* watchdog instance.
*
* @throws BuildException under unspecified circumstances
@@ -1654,7 +1654,7 @@ public class JUnitTask extends Task {
/**
* Merge all individual tests from the batchtest with all individual tests
- * and return an enumeration over all JUnitTest.
+ * and return an enumeration over all JUnitTest.
*
* @return enumeration over individual tests
* @since Ant 1.3
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java
index c29271d9e..79ee06fc0 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java
@@ -19,8 +19,8 @@ package org.apache.tools.ant.taskdefs.optional.junit;
/**
* Interface groups XML constants.
- * Interface that groups all constants used throughout the XML
- * documents that are generated by the XMLJUnitResultFormatter.
+ * Interface that groups all constants used throughout the XML
+ * documents that are generated by the XMLJUnitResultFormatter.
*
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java
index c188ad9dc..993d47159 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java
@@ -70,10 +70,10 @@ public class XMLResultAggregator extends Task implements XMLConstants {
protected Vector transformers = new Vector<>();
- /** The default directory: .. It is resolved from the project directory */
+ /** The default directory: .. It is resolved from the project directory */
public static final String DEFAULT_DIR = ".";
- /** the default file name: TESTS-TestSuites.xml */
+ /** the default file name: TESTS-TestSuites.xml */
public static final String DEFAULT_FILENAME = "TESTS-TestSuites.xml";
/** the current generated id */
@@ -108,7 +108,7 @@ public class XMLResultAggregator extends Task implements XMLConstants {
/**
* Set the name of the aggregated results file. It must be relative
- * from the todir attribute. If not set it will use {@link #DEFAULT_FILENAME}
+ * from the todir attribute. If not set it will use {@link #DEFAULT_FILENAME}
* @param value the name of the file.
* @see #setTodir(File)
*/
@@ -160,7 +160,7 @@ public class XMLResultAggregator extends Task implements XMLConstants {
/**
* Get the full destination file where to write the result. It is made of
- * the todir and tofile attributes.
+ * the todir and tofile attributes.
* @return the destination file where should be written the result file.
*/
public File getDestinationFile() {
@@ -270,10 +270,10 @@ public class XMLResultAggregator extends Task implements XMLConstants {
* Add a new testsuite node to the document.
* The main difference is that it
* split the previous fully qualified name into a package and a name.
- * For example: org.apache.Whatever will be split into
- * org.apache and Whatever.
+ * For example: org.apache.Whatever will be split into
+ * org.apache and Whatever.
*
- * @param root the root element to which the testsuite node should
+ * @param root the root element to which the testsuite node should
* be appended.
* @param testsuite the element to append to the given root. It will slightly
* modify the original node to change the name attribute and add
@@ -295,7 +295,7 @@ public class XMLResultAggregator extends Task implements XMLConstants {
}
/**
- * Create a new document builder. Will issue an ExceptionInitializerError
+ * Create a new document builder. Will issue an ExceptionInitializerError
* if something is going wrong. It is fatal anyway.
* @todo factorize this somewhere else. It is duplicated code.
* @return a new document builder to create a DOM
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
index 901ff06a8..fe757e265 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
@@ -1286,7 +1286,7 @@ public class FTP extends Task implements FTPTaskConfig {
/**
- * A synonym for depends. Set to true to transmit only new
+ * A synonym for depends. Set to true to transmit only new
* or changed files.
*
* See the related attributes timediffmillis and timediffauto.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java
index 44eb02eb8..c8e993023 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java
@@ -265,7 +265,7 @@ public class FTPTask extends Task implements FTPTaskConfig {
}
/**
- * A synonym for depends. Set to true to transmit only new
+ * A synonym for depends. Set to true to transmit only new
* or changed files.
*
* See the related attributes timediffmillis and timediffauto.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/MimeMail.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/MimeMail.java
index 01db77a93..8e4ec39f7 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/MimeMail.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/MimeMail.java
@@ -21,7 +21,7 @@ import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.taskdefs.email.EmailTask;
/**
- * A task to send SMTP email; Use mail instead
+ * A task to send SMTP email; Use mail instead
*
* @deprecated since 1.6.x.
* Use {@link EmailTask} instead.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/RExecTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/RExecTask.java
index d41606089..649cb7012 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/RExecTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/RExecTask.java
@@ -430,7 +430,7 @@ public class RExecTask extends Task {
/**
* Set the the login password to use
- * required if userid is set.
+ * required if userid is set.
* @param p a String value
*/
public void setPassword(String p) {
@@ -464,7 +464,7 @@ public class RExecTask extends Task {
/**
* Set the the login id to use on the server;
- * required if password is set.
+ * required if password is set.
* @param u a String value
*/
public void setUserid(String u) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/SetProxy.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/SetProxy.java
index d347a7521..3afcdef9a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/SetProxy.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/SetProxy.java
@@ -47,8 +47,8 @@ import org.apache.tools.ant.util.ProxySetup;
* <setproxy socksproxyhost=""/>
* stop using the socks server.
*
- * You can set a username and password for http with the proxyHost
- * and proxyPassword attributes. These can also be
+ * You can set a username and password for http with the proxyHost
+ * and proxyPassword attributes. These can also be
* used against SOCKS5 servers.
*
* @see
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java
index 37802bf27..04c99e076 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java
@@ -150,7 +150,7 @@ public class TelnetTask extends Task {
/**
* Set the the login id to use on the server;
- * required if password is set.
+ * required if password is set.
* @param u a String value
*/
public void setUserid(String u) {
@@ -159,7 +159,7 @@ public class TelnetTask extends Task {
/**
* Set the the login password to use
- * required if userid is set.
+ * required if userid is set.
* @param p a String value
*/
public void setPassword(String p) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java
index e265bbe1e..1ca8d834a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java
@@ -110,7 +110,7 @@ public class SplashTask extends Task {
}
/**
- * Proxy password; required if user is set.
+ * Proxy password; required if user is set.
* @param password the proxy password
* @deprecated since 1.5.x.
* Use org.apache.tools.ant.taskdefs.optional.net.SetProxy
diff --git a/src/main/org/apache/tools/ant/types/CommandlineJava.java b/src/main/org/apache/tools/ant/types/CommandlineJava.java
index 8ddebc97d..876675332 100644
--- a/src/main/org/apache/tools/ant/types/CommandlineJava.java
+++ b/src/main/org/apache/tools/ant/types/CommandlineJava.java
@@ -30,7 +30,7 @@ import org.apache.tools.ant.util.JavaEnvUtils;
/**
* A representation of a Java command line that is
- * a composite of 2 Commandlines. One is used for the
+ * a composite of 2 Commandlines. One is used for the
* vm/options and one for the classname/arguments. It provides
* specific methods for a Java command line.
*
@@ -325,7 +325,7 @@ public class CommandlineJava implements Cloneable {
/**
* Get the name of the jar to be run.
* @return the pathname of the jar file to run via -jar option
- * or null if there is no jar to run.
+ * or null if there is no jar to run.
* @see #getClassname()
*/
public String getJar() {
@@ -352,7 +352,7 @@ public class CommandlineJava implements Cloneable {
/**
* Get the name of the class to be run.
- * @return the name of the class to run or null if there is no class.
+ * @return the name of the class to run or null if there is no class.
* @see #getJar()
*/
public String getClassname() {
@@ -419,7 +419,7 @@ public class CommandlineJava implements Cloneable {
/**
* Get the name of the module to be run.
- * @return the name of the module to run or null if there is no module.
+ * @return the name of the module to run or null if there is no module.
* @see #getJar()
* @see #getClassname()
* @since 1.9.7
diff --git a/src/main/org/apache/tools/ant/types/EnumeratedAttribute.java b/src/main/org/apache/tools/ant/types/EnumeratedAttribute.java
index 80884c360..09867d39a 100644
--- a/src/main/org/apache/tools/ant/types/EnumeratedAttribute.java
+++ b/src/main/org/apache/tools/ant/types/EnumeratedAttribute.java
@@ -46,7 +46,7 @@ public abstract class EnumeratedAttribute {
* This is the only method a subclass needs to implement.
*
* @return an array holding all possible values of the enumeration.
- * The order of elements must be fixed so that indexOfValue(String)
+ * The order of elements must be fixed so that indexOfValue(String)
* always return the same index for the same value.
*/
public abstract String[] getValues();
diff --git a/src/main/org/apache/tools/ant/types/XMLCatalog.java b/src/main/org/apache/tools/ant/types/XMLCatalog.java
index 5922120fd..1149ff885 100644
--- a/src/main/org/apache/tools/ant/types/XMLCatalog.java
+++ b/src/main/org/apache/tools/ant/types/XMLCatalog.java
@@ -555,10 +555,10 @@ public class XMLCatalog extends DataType
* inherit the EntityResolver of the original (although arguably
* it should). See below:
*
- * "If an application wants to set the ErrorHandler or
+ * "If an application wants to set the ErrorHandler or
* EntityResolver for an XMLReader used during a transformation,
* it should use a URIResolver to return the SAXSource which
- * provides (with getXMLReader) a reference to the XMLReader"
+ * provides (with getXMLReader) a reference to the XMLReader"
*
* ...quoted from page 118 of the Java API for XML
* Processing 1.1 specification
diff --git a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java
index 181642c14..78cc09af1 100644
--- a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java
@@ -488,7 +488,7 @@ public class ModifiedSelector extends BaseExtendSelector
* @param basedir as described in BaseExtendSelector
* @param filename as described in BaseExtendSelector
* @param cacheKey the name for the key for storing the hashvalue
- * @return true if the file is selected otherwise false
+ * @return true if the file is selected otherwise false
*/
private boolean isSelected(File basedir, String filename, String cacheKey) {
validate();
diff --git a/src/main/org/apache/tools/ant/util/DateUtils.java b/src/main/org/apache/tools/ant/util/DateUtils.java
index 7436fc64e..1d5bee046 100644
--- a/src/main/org/apache/tools/ant/util/DateUtils.java
+++ b/src/main/org/apache/tools/ant/util/DateUtils.java
@@ -45,19 +45,19 @@ public final class DateUtils {
private static final int TEN = 10;
/**
* ISO8601-like pattern for date-time. It does not support timezone.
- * yyyy-MM-ddTHH:mm:ss
+ * yyyy-MM-ddTHH:mm:ss
*/
public static final String ISO8601_DATETIME_PATTERN
= "yyyy-MM-dd'T'HH:mm:ss";
/**
- * ISO8601-like pattern for date. yyyy-MM-dd
+ * ISO8601-like pattern for date. yyyy-MM-dd
*/
public static final String ISO8601_DATE_PATTERN
= "yyyy-MM-dd";
/**
- * ISO8601-like pattern for time. HH:mm:ss
+ * ISO8601-like pattern for time. HH:mm:ss
*/
public static final String ISO8601_TIME_PATTERN
= "HH:mm:ss";
diff --git a/src/main/org/apache/tools/ant/util/KeepAliveInputStream.java b/src/main/org/apache/tools/ant/util/KeepAliveInputStream.java
index 58332b5c5..447dd8629 100644
--- a/src/main/org/apache/tools/ant/util/KeepAliveInputStream.java
+++ b/src/main/org/apache/tools/ant/util/KeepAliveInputStream.java
@@ -22,7 +22,7 @@ import java.io.IOException;
import java.io.InputStream;
/**
- * Class that can be used to wrap System.in
+ * Class that can be used to wrap System.in
* without getting anxious about any client closing the stream.
*
*
diff --git a/src/main/org/apache/tools/ant/util/KeepAliveOutputStream.java b/src/main/org/apache/tools/ant/util/KeepAliveOutputStream.java
index 352b0bacb..1ddccccc1 100644
--- a/src/main/org/apache/tools/ant/util/KeepAliveOutputStream.java
+++ b/src/main/org/apache/tools/ant/util/KeepAliveOutputStream.java
@@ -23,7 +23,7 @@ import java.io.OutputStream;
import java.io.PrintStream;
/**
- * Class that can be used to wrap System.out and System.err
+ * Class that can be used to wrap System.out and System.err
* without getting anxious about any client closing the stream.
*
*
diff --git a/src/main/org/apache/tools/ant/util/StringUtils.java b/src/main/org/apache/tools/ant/util/StringUtils.java
index 3f71ef8a2..d7151157a 100644
--- a/src/main/org/apache/tools/ant/util/StringUtils.java
+++ b/src/main/org/apache/tools/ant/util/StringUtils.java
@@ -50,7 +50,7 @@ public final class StringUtils {
/**
* Splits up a string into a list of lines. It is equivalent
- * to split(data, '\n').
+ * to split(data, '\n').
* @param data the string to split up into lines.
* @return the list of lines available in the string.
*/
diff --git a/src/main/org/apache/tools/bzip2/CBZip2InputStream.java b/src/main/org/apache/tools/bzip2/CBZip2InputStream.java
index 2f982deaa..c1e2f9701 100644
--- a/src/main/org/apache/tools/bzip2/CBZip2InputStream.java
+++ b/src/main/org/apache/tools/bzip2/CBZip2InputStream.java
@@ -32,11 +32,11 @@ import java.io.InputStream;
*
*
The decompression requires large amounts of memory. Thus you
* should call the {@link #close() close()} method as soon as
- * possible, to force CBZip2InputStream to release the
+ * possible, to force CBZip2InputStream to release the
* allocated memory. See {@link CBZip2OutputStream
* CBZip2OutputStream} for information about memory usage.
*
- * CBZip2InputStream reads bytes from the compressed
+ *
CBZip2InputStream reads bytes from the compressed
* source stream via the single byte {@link java.io.InputStream#read()
* read()} method exclusively. Thus you should consider to use a
* buffered source stream.
@@ -114,7 +114,7 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
* concatenated .bz2 files.
*
* Although BZip2 headers are marked with the magic
- * "Bz" this constructor expects the next byte in the
+ * "Bz" this constructor expects the next byte in the
* stream to be the first one after the magic. Thus callers have
* to skip the first two bytes. Otherwise this constructor will
* throw an exception.
@@ -123,7 +123,7 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
* @throws IOException
* if the stream content is malformed or an I/O error occurs.
* @throws NullPointerException
- * if in == null
+ * if in == null
*/
public CBZip2InputStream(final InputStream in) throws IOException {
this(in, false);
@@ -134,7 +134,7 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
* read from the specified stream.
*
* Although BZip2 headers are marked with the magic
- * "Bz" this constructor expects the next byte in the
+ * "Bz" this constructor expects the next byte in the
* stream to be the first one after the magic. Thus callers have
* to skip the first two bytes. Otherwise this constructor will
* throw an exception.
@@ -149,7 +149,7 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
* @throws IOException
* if the stream content is malformed or an I/O error occurs.
* @throws NullPointerException
- * if in == null
+ * if in == null
*/
public CBZip2InputStream(final InputStream in,
final boolean decompressConcatenated)
diff --git a/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java b/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
index ec438be66..f386adfc3 100644
--- a/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
+++ b/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
@@ -34,7 +34,7 @@ import java.io.OutputStream;
*
* The compression requires large amounts of memory. Thus you should call the
* {@link #close() close()} method as soon as possible, to force
- * CBZip2OutputStream to release the allocated memory.
+ * CBZip2OutputStream to release the allocated memory.
*
*
* You can shrink the amount of allocated memory and maybe raise
@@ -57,62 +57,62 @@ import java.io.OutputStream;
* <code>65k + (5 * blocksize)</code>.
*
*
- * | Blocksize | - *Compression memory usage |
- * Decompression memory usage |
+ * Blocksize | + *Compression memory usage |
+ * Decompression memory usage |
*
|---|---|---|---|---|---|
| 100k | - *1300k | - *565k | + *100k | + *1300k | + *565k | *
| 200k | - *2200k | - *1065k | + *200k | + *2200k | + *1065k | *
| 300k | - *3100k | - *1565k | + *300k | + *3100k | + *1565k | *
| 400k | - *4000k | - *2065k | + *400k | + *4000k | + *2065k | *
| 500k | - *4900k | - *2565k | + *500k | + *4900k | + *2565k | *
| 600k | - *5800k | - *3065k | + *600k | + *5800k | + *3065k | *
| 700k | - *6700k | - *3565k | + *700k | + *6700k | + *3565k | *
| 800k | - *7600k | - *4065k | + *800k | + *7600k | + *4065k | *
| 900k | - *8500k | - *4565k | + *900k | + *8500k | + *4565k | *
- * For decompression CBZip2InputStream allocates less memory if the
+ * For decompression CBZip2InputStream allocates less memory if the
* bzipped input is smaller than one block.
*
== 1.
*/
public static final int MIN_BLOCKSIZE = 1;
/**
- * The maximum supported blocksize == 9.
+ * The maximum supported blocksize == 9.
*/
public static final int MAX_BLOCKSIZE = 9;
@@ -564,10 +564,10 @@ public class CBZip2OutputStream extends OutputStream
*
* @param inputLength
* The length of the data which will be compressed by
- * CBZip2OutputStream.
+ * CBZip2OutputStream.
* @return The blocksize, between {@link #MIN_BLOCKSIZE} and
* {@link #MAX_BLOCKSIZE} both inclusive. For a negative
- * inputLength this method returns MAX_BLOCKSIZE
+ * inputLength this method returns MAX_BLOCKSIZE
* always.
*/
public static int chooseBlockSize(long inputLength) {
@@ -576,11 +576,11 @@ public class CBZip2OutputStream extends OutputStream
}
/**
- * Constructs a new CBZip2OutputStream with a blocksize of 900k.
+ * Constructs a new CBZip2OutputStream with a blocksize of 900k.
*
*
* Attention: The caller is responsible to write the two BZip2 magic
- * bytes "BZ" to the specified stream prior to calling this
+ * bytes "BZ" to the specified stream prior to calling this
* constructor.
*
CBZip2OutputStream with specified blocksize.
*
*
* Attention: The caller is responsible to write the two BZip2 magic
- * bytes "BZ" to the specified stream prior to calling this
+ * bytes "BZ" to the specified stream prior to calling this
* constructor.
*
buf.length-2
*/
public void encode(byte[] buf, int offset) {
ZipShort.putShort((dataDescriptorFlag ? DATA_DESCRIPTOR_FLAG : 0)
diff --git a/src/main/org/apache/tools/zip/ZipLong.java b/src/main/org/apache/tools/zip/ZipLong.java
index 69d6ca41d..04e8b982d 100644
--- a/src/main/org/apache/tools/zip/ZipLong.java
+++ b/src/main/org/apache/tools/zip/ZipLong.java
@@ -124,7 +124,7 @@ public final class ZipLong implements Cloneable {
* @param buf the output buffer
* @param offset
* The offset within the output buffer of the first byte to be written.
- * must be non-negative and no larger than buf.length-4
+ * must be non-negative and no larger than buf.length-4
*/
public static void putLong(long value, byte[] buf, int offset) {
buf[offset++] = (byte) ((value & BYTE_MASK));
diff --git a/src/main/org/apache/tools/zip/ZipShort.java b/src/main/org/apache/tools/zip/ZipShort.java
index 3dbe2cb5e..7171fe645 100644
--- a/src/main/org/apache/tools/zip/ZipShort.java
+++ b/src/main/org/apache/tools/zip/ZipShort.java
@@ -76,7 +76,7 @@ public final class ZipShort implements Cloneable {
* @param buf the output buffer
* @param offset
* The offset within the output buffer of the first byte to be written.
- * must be non-negative and no larger than buf.length-2
+ * must be non-negative and no larger than buf.length-2
*/
public static void putShort(int value, byte[] buf, int offset) {
buf[offset] = (byte) (value & BYTE_MASK);
diff --git a/src/main/org/apache/tools/zip/ZipUtil.java b/src/main/org/apache/tools/zip/ZipUtil.java
index ff35ca47c..f130335dd 100644
--- a/src/main/org/apache/tools/zip/ZipUtil.java
+++ b/src/main/org/apache/tools/zip/ZipUtil.java
@@ -65,7 +65,7 @@ public abstract class ZipUtil {
* @param buf the output buffer
* @param offset
* The offset within the output buffer of the first byte to be written.
- * must be non-negative and no larger than buf.length-4
+ * must be non-negative and no larger than buf.length-4
*/
public static void toDosTime(long t, byte[] buf, int offset) {
toDosTime(Calendar.getInstance(), t, buf, offset);
diff --git a/src/tests/junit/org/apache/tools/ant/AntAssert.java b/src/tests/junit/org/apache/tools/ant/AntAssert.java
index 93a1562ee..ee04fbcf4 100644
--- a/src/tests/junit/org/apache/tools/ant/AntAssert.java
+++ b/src/tests/junit/org/apache/tools/ant/AntAssert.java
@@ -21,7 +21,7 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
- * Provides common assert functions for use across multiple tests, similar to the Asserts
+ * Provides common assert functions for use across multiple tests, similar to the Asserts
* within JUnit.
*
* @deprecated use assertThat() in JUnit 4.4+ in combination with containsString() matcher;
diff --git a/src/tests/junit/org/apache/tools/ant/BuildFileRule.java b/src/tests/junit/org/apache/tools/ant/BuildFileRule.java
index bb77b747a..8caa1876c 100644
--- a/src/tests/junit/org/apache/tools/ant/BuildFileRule.java
+++ b/src/tests/junit/org/apache/tools/ant/BuildFileRule.java
@@ -70,7 +70,7 @@ public class BuildFileRule extends ExternalResource {
/**
* Tidies up following a test execution. If the currently configured
- * project has a tearDown target then this will automatically
+ * project has a tearDown target then this will automatically
* be called, otherwise this method will not perform any actions.
*/
@Override
diff --git a/src/tests/junit/org/apache/tools/ant/BuildFileTest.java b/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
index cdb45f40c..101e213d4 100644
--- a/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
+++ b/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
@@ -155,7 +155,7 @@ public abstract class BuildFileTest extends TestCase {
* Assert that the given substring is in the output messages.
*
* @param message Print this message if the test fails. Defaults to
- * a meaningful text if null is passed.
+ * a meaningful text if null is passed.
* @param substring String
* @since Ant1.7
*/
@@ -171,7 +171,7 @@ public abstract class BuildFileTest extends TestCase {
* Assert that the given substring is not in the output messages.
*
* @param message Print this message if the test fails. Defaults to
- * a meaningful text if null is passed.
+ * a meaningful text if null is passed.
* @param substring String
* @since Ant1.7
*/
diff --git a/src/tests/junit/org/apache/tools/ant/FileUtilities.java b/src/tests/junit/org/apache/tools/ant/FileUtilities.java
index 3f0eff2bb..0653fb0e6 100644
--- a/src/tests/junit/org/apache/tools/ant/FileUtilities.java
+++ b/src/tests/junit/org/apache/tools/ant/FileUtilities.java
@@ -53,7 +53,7 @@ public class FileUtilities {
}
/**
- * Modified the timestamp on a file so it's seconds earlier than it was before. Where file
+ * Modified the timestamp on a file so it's seconds earlier than it was before. Where file
* is a directory, this function recurses into all child files (and directories) and reduces their modified
* timestamps by the same range, rather than set all timestamps to the same time.
* @param file the file to change, or the directory to change then recurse into