Browse Source

checkstyle

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@565097 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
047a0d5d26
3 changed files with 8 additions and 7 deletions
  1. +6
    -2
      src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java
  2. +0
    -3
      src/main/org/apache/tools/ant/taskdefs/condition/ConditionBase.java
  3. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/condition/Equals.java

+ 6
- 2
src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java View File

@@ -80,13 +80,17 @@ public class AntVersion extends Task implements Condition {
try {
new DeweyDecimal(atLeast);
} catch (NumberFormatException e) {
throw new BuildException("The 'atleast' attribute is not a Dewey Decimal eg 1.1.0 : " + atLeast);
throw new BuildException(
"The 'atleast' attribute is not a Dewey Decimal eg 1.1.0 : "
+ atLeast);
}
} else {
try {
new DeweyDecimal(exactly);
} catch (NumberFormatException e) {
throw new BuildException("The 'exactly' attribute is not a Dewey Decimal eg 1.1.0 : " + exactly);
throw new BuildException(
"The 'exactly' attribute is not a Dewey Decimal eg 1.1.0 : "
+ exactly);
}
}
}


+ 0
- 3
src/main/org/apache/tools/ant/taskdefs/condition/ConditionBase.java View File

@@ -20,9 +20,6 @@ package org.apache.tools.ant.taskdefs.condition;

import java.util.Enumeration;
import java.util.Vector;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.DynamicElement;
import org.apache.tools.ant.ComponentHelper;
import org.apache.tools.ant.ProjectComponent;
import org.apache.tools.ant.taskdefs.Available;
import org.apache.tools.ant.taskdefs.Checksum;


+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/condition/Equals.java View File

@@ -35,7 +35,7 @@ public class Equals implements Condition {

/**
* Set the first argument
* @param arg1
* @param arg1 the first argument.
* @since Ant 1.8
*/
public void setArg1(Object arg1) {
@@ -54,7 +54,7 @@ public class Equals implements Condition {

/**
* Set the second argument
* @param arg2
* @param arg2 the second argument.
* @since Ant 1.8
*/
public void setArg2(Object arg2) {


Loading…
Cancel
Save