Browse Source

checkstyle

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@565095 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
031ceefb6a
11 changed files with 12 additions and 4 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java
  3. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/depend/ClassFileUtils.java
  4. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/extension/ExtensionUtil.java
  5. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibResolveTask.java
  6. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/javah/JavahAdapterFactory.java
  7. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/native2ascii/Native2AsciiAdapter.java
  8. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/native2ascii/Native2AsciiAdapterFactory.java
  9. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/net/FTPConfigurator.java
  10. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCmd.java
  11. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSConstants.java

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

@@ -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;




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

@@ -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;


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

@@ -24,6 +24,7 @@ package org.apache.tools.ant.taskdefs.optional.depend;
* *
* *
*/ */
// CheckStyle:HideUtilityClassConstructorCheck OFF (bc)
public class ClassFileUtils { public class ClassFileUtils {


/** /**


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/extension/ExtensionUtil.java View File

@@ -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.
*/ */


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

@@ -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);
} }


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

@@ -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 {


/** /**


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

@@ -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.


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

@@ -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 {


/** /**


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

@@ -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


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

@@ -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 */


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

@@ -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";


Loading…
Cancel
Save