CloneSet217


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28230.973nested_class_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12985
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/RExecTask.java
228223
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
29
Source Line
85
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/RExecTask.java

/**
 *  This class is the parent of the Read and Write tasks.
 *  It handles the common attributes for both.
 */
public class RExecSubTask {
  // CheckStyle:VisibilityModifier OFF - bc
  protected String taskString = "";

  // CheckStyle:VisibilityModifier ON
  /**
   * Execute the subtask.
   * @param rexec the client
   * @throws BuildException always as it is not allowed to instantiate this object
   */
  public void execute(AntRExecClient rexec) throws BuildException {
    throw new BuildException("Shouldn\'t be able instantiate a SubTask directly");
  }

  /**
   *  the message as nested text
   * @param s the nested text
   */
  public void addText(String s) {
    setString(getProject().replaceProperties(s));
  }

  /**
   * the message as an attribute
   * @param s a <code>String</code> value
   */
  public void setString(String s) {
    taskString += s;
  }
}


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

/**
 *  This class is the parent of the Read and Write tasks.
 *  It handles the common attributes for both.
 */
public class TelnetSubTask {
  // CheckStyle:VisibilityModifier OFF - bc
  protected String taskString = "";

  // CheckStyle:VisibilityModifier ON
  /**
   * Execute the subtask.
   * @param telnet the client
   * @throws BuildException always as it is not allowed to instantiate this object
   */
  public void execute(AntTelnetClient telnet) throws BuildException {
    throw new BuildException("Shouldn\'t be able instantiate a SubTask directly");
  }

  /**
   *  the message as nested text
   * @param s the nested text
   */
  public void addText(String s) {
    setString(getProject().replaceProperties(s));
  }

  /**
   * the message as an attribute
   * @param s a <code>String</code> value
   */
  public void setString(String s) {
    taskString += s;
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     *  This class is the parent of the Read and Write tasks.
     *  It handles the common attributes for both.
     */
public class [[#variable1011b0c0]]{
  // CheckStyle:VisibilityModifier OFF - bc
  protected String taskString = "";

  // CheckStyle:VisibilityModifier ON
  /**
           * Execute the subtask.
           * @param telnet the client
           * @throws BuildException always as it is not allowed to instantiate this object
           */
  /**
           * Execute the subtask.
           * @param rexec the client
           * @throws BuildException always as it is not allowed to instantiate this object
           */
  public void execute( [[#variable1011b020]]  [[#variable1011afa0]]) throws BuildException {
    throw new BuildException("Shouldn\'t be able instantiate a SubTask directly");
  }

  /**
           *  the message as nested text
           * @param s the nested text
           */
  public void addText(String s) {
    setString(getProject().replaceProperties(s));
  }

  /**
           * the message as an attribute
           * @param s a <code>String</code> value
           */
  public void setString(String s) {
    taskString += s;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1011b0c0]]
RExecSubTask 
12[[#1011b0c0]]
TelnetSubTask 
21[[#1011b020]]
AntRExecClient 
22[[#1011b020]]
AntTelnetClient 
31[[#1011afa0]]
rexec 
32[[#1011afa0]]
telnet