git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@565095 13f79535-47bb-0310-9956-ffa450edef68remotes/1773176429593857195/tmp_1388e372a9eb6cc6c463fbda928a10afd17b6d0a
| @@ -421,7 +421,7 @@ public class EchoProperties extends Task { | |||||
| /** | /** | ||||
| * a tuple for the sort list. | * a tuple for the sort list. | ||||
| */ | */ | ||||
| private static class Tuple implements Comparable { | |||||
| private static final class Tuple implements Comparable { | |||||
| private String key; | private String key; | ||||
| private String value; | private String value; | ||||
| @@ -225,7 +225,7 @@ public class Rpm extends Task { | |||||
| * @param sf the spec file name to use. | * @param sf the spec file name to use. | ||||
| */ | */ | ||||
| public void setSpecFile(String sf) { | public void setSpecFile(String sf) { | ||||
| if ((sf == null) || (sf.trim().length()==0)) { | |||||
| if ((sf == null) || (sf.trim().length() == 0)) { | |||||
| throw new BuildException("You must specify a spec file", getLocation()); | throw new BuildException("You must specify a spec file", getLocation()); | ||||
| } | } | ||||
| this.specFile = sf; | this.specFile = sf; | ||||
| @@ -24,6 +24,7 @@ package org.apache.tools.ant.taskdefs.optional.depend; | |||||
| * | * | ||||
| * | * | ||||
| */ | */ | ||||
| // CheckStyle:HideUtilityClassConstructorCheck OFF (bc) | |||||
| public class ClassFileUtils { | public class ClassFileUtils { | ||||
| /** | /** | ||||
| @@ -34,7 +34,7 @@ import org.apache.tools.ant.types.FileSet; | |||||
| * A set of useful methods relating to extensions. | * A set of useful methods relating to extensions. | ||||
| * | * | ||||
| */ | */ | ||||
| public class ExtensionUtil { | |||||
| public final class ExtensionUtil { | |||||
| /** | /** | ||||
| * Class is not meant to be instantiated. | * Class is not meant to be instantiated. | ||||
| */ | */ | ||||
| @@ -230,7 +230,8 @@ public class JarLibResolveTask extends Task { | |||||
| return; | return; | ||||
| } | } | ||||
| } | } | ||||
| final String message = "File " + file + " skipped as it " + "does not satisfy extension"; | |||||
| final String message = "File " + file + " skipped as it " | |||||
| + "does not satisfy extension"; | |||||
| getProject().log(message, Project.MSG_VERBOSE); | getProject().log(message, Project.MSG_VERBOSE); | ||||
| throw new BuildException(message); | throw new BuildException(message); | ||||
| } | } | ||||
| @@ -28,6 +28,7 @@ import org.apache.tools.ant.util.JavaEnvUtils; | |||||
| * | * | ||||
| * @since Ant 1.6.3 | * @since Ant 1.6.3 | ||||
| */ | */ | ||||
| // CheckStyle:HideUtilityClassConstructorCheck OFF (bc) | |||||
| public class JavahAdapterFactory { | public class JavahAdapterFactory { | ||||
| /** | /** | ||||
| @@ -26,6 +26,7 @@ import org.apache.tools.ant.taskdefs.optional.Native2Ascii; | |||||
| * | * | ||||
| * @since Ant 1.6.3 | * @since Ant 1.6.3 | ||||
| */ | */ | ||||
| // CheckStyle:HideUtilityClassConstructorCheck OFF (bc) | |||||
| public interface Native2AsciiAdapter { | public interface Native2AsciiAdapter { | ||||
| /** | /** | ||||
| * Convert the encoding of srcFile writing to destFile. | * Convert the encoding of srcFile writing to destFile. | ||||
| @@ -28,6 +28,7 @@ import org.apache.tools.ant.util.JavaEnvUtils; | |||||
| * | * | ||||
| * @since Ant 1.6.3 | * @since Ant 1.6.3 | ||||
| */ | */ | ||||
| // CheckStyle:HideUtilityClassConstructorCheck OFF (bc) | |||||
| public class Native2AsciiAdapterFactory { | public class Native2AsciiAdapterFactory { | ||||
| /** | /** | ||||
| @@ -28,6 +28,7 @@ import org.apache.tools.ant.Project; | |||||
| * upgrade to jakarta-commons-net 1.4.0, where FTPClientConfig was | * upgrade to jakarta-commons-net 1.4.0, where FTPClientConfig was | ||||
| * introduced. | * introduced. | ||||
| */ | */ | ||||
| // CheckStyle:HideUtilityClassConstructorCheck OFF (bc) | |||||
| class FTPConfigurator { | class FTPConfigurator { | ||||
| /** | /** | ||||
| * configures the supplied FTPClient with the various | * configures the supplied FTPClient with the various | ||||
| @@ -21,6 +21,7 @@ package org.apache.tools.ant.taskdefs.optional.sos; | |||||
| * Interface to hold constants used by the SOS tasks | * Interface to hold constants used by the SOS tasks | ||||
| * | * | ||||
| */ | */ | ||||
| // CheckStyle:InterfaceIsTypeCheck OFF (bc) | |||||
| public interface SOSCmd { | public interface SOSCmd { | ||||
| // soscmd Command options | // soscmd Command options | ||||
| /** The sos executable */ | /** The sos executable */ | ||||
| @@ -21,6 +21,7 @@ package org.apache.tools.ant.taskdefs.optional.vss; | |||||
| * Holds all the constants for the VSS tasks. | * Holds all the constants for the VSS tasks. | ||||
| * | * | ||||
| */ | */ | ||||
| // CheckStyle:InterfaceIsType OFF (bc) | |||||
| public interface MSVSSConstants { | public interface MSVSSConstants { | ||||
| /** Constant for the thing to execute */ | /** Constant for the thing to execute */ | ||||
| String SS_EXE = "ss"; | String SS_EXE = "ss"; | ||||