CloneSet224


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27220.973class_body
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
127146
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/RExecTask.java
227283
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java
Next
Last
Clone Instance
1
Line Count
27
Source Line
146
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/RExecTask.java

{
  private Integer timeout = null;

  /**
   * Execute the read exec task.
   * @param rexec the task to use
   * @throws BuildException on error
   */
  public void execute(AntRExecClient rexec) throws BuildException {
    rexec.waitForString(taskString, timeout);
  }

  /**
   *  a timeout value that overrides any task wide timeout.
   * @param i an <code>Integer</code> value
   */
  public void setTimeout(Integer i) {
    this.timeout = i;
  }

  /**
   * Sets the default timeout if none has been set already
   * @param defaultTimeout an <code>Integer</code> value
   * @ant.attribute ignore="true"
   */
  public void setDefaultTimeout(Integer defaultTimeout) {
    if (timeout == null) {
      timeout = defaultTimeout;
    }
  }
}


First
Previous
Clone Instance
2
Line Count
27
Source Line
283
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java

{
  private Integer timeout = null;

  /**
   * Execute the read task.
   * @param telnet the task to use
   * @throws BuildException on error
   */
  public void execute(AntTelnetClient telnet) throws BuildException {
    telnet.waitForString(taskString, timeout);
  }

  /**
   *  a timeout value that overrides any task wide timeout.
   * @param i an <code>Integer</code> value
   */
  public void setTimeout(Integer i) {
    this.timeout = i;
  }

  /**
   * Sets the default timeout if none has been set already
   * @param defaultTimeout an <code>Integer</code> value
   * @ant.attribute ignore="true"
   */
  public void setDefaultTimeout(Integer defaultTimeout) {
    if (timeout == null) {
      timeout = defaultTimeout;
    }
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

{
  private Integer timeout = null;

  /**
           * Execute the read task.
           * @param telnet the task to use
           * @throws BuildException on error
           */
  /**
           * Execute the read exec task.
           * @param rexec the task to use
           * @throws BuildException on error
           */
  public void execute( [[#variable131a5c20]]  [[#variable131a5ba0]]) throws BuildException {
     [[#variable131a5ba0]].waitForString(taskString, timeout);
  }

  /**
           *  a timeout value that overrides any task wide timeout.
           * @param i an <code>Integer</code> value
           */
  public void setTimeout(Integer i) {
    this.timeout = i;
  }

  /**
           * Sets the default timeout if none has been set already
           * @param defaultTimeout an <code>Integer</code> value
           * @ant.attribute ignore="true"
           */
  public void setDefaultTimeout(Integer defaultTimeout) {
    if (timeout == null) {
      timeout = defaultTimeout;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#131a5c20]]
AntRExecClient 
12[[#131a5c20]]
AntTelnetClient 
21[[#131a5ba0]]
rexec 
22[[#131a5ba0]]
telnet