Browse Source

checkstyle

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277100 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
260563c196
4 changed files with 6 additions and 3 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Resolve.java
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
  3. +3
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/starteam/StarTeamCheckin.java
  4. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/starteam/StarTeamCheckout.java

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

@@ -73,7 +73,7 @@ public class P4Resolve extends P4Base {
break; break;
} }
} }
if (found == false) {
if (!found) {
throw new BuildException("Unacceptable value for resolve mode"); throw new BuildException("Unacceptable value for resolve mode");
} }
this.resolvemode = resolvemode; this.resolvemode = resolvemode;


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

@@ -40,7 +40,7 @@ import com.jcraft.jsch.Session;
*/ */
public class SSHExec extends SSHBase { public class SSHExec extends SSHBase {


private final int BUFFER_SIZE = 1024;
private static final int BUFFER_SIZE = 1024;


/** the command to execute via ssh */ /** the command to execute via ssh */
private String command = null; private String command = null;


+ 3
- 0
src/main/org/apache/tools/ant/taskdefs/optional/starteam/StarTeamCheckin.java View File

@@ -37,6 +37,9 @@ import org.apache.tools.ant.BuildException;
*/ */
public class StarTeamCheckin extends TreeBasedTask { public class StarTeamCheckin extends TreeBasedTask {


/**
* Constructor for StarTeamCheckin.
*/
public StarTeamCheckin() { public StarTeamCheckin() {
// we want this to have a false default, unlike for Checkin. // we want this to have a false default, unlike for Checkin.
setRecursive(false); setRecursive(false);


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

@@ -211,7 +211,7 @@ public class StarTeamCheckout extends TreeBasedTask {
* @param raw the unconfigured <code>View</code> * @param raw the unconfigured <code>View</code>
* *
* @return the snapshot <code>View</code> appropriately configured. * @return the snapshot <code>View</code> appropriately configured.
* @exception BuildException
* @exception BuildException on error
*/ */
protected View createSnapshotView(View raw) throws BuildException { protected View createSnapshotView(View raw) throws BuildException {




Loading…
Cancel
Save