CloneSet191


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

/**
 * Write this string to the rexec session.
 * @param s          the string to write
 * @param echoString if true log the string sent
 */
public void sendString(String s, boolean echoString) {
  OutputStream os = this.getOutputStream();
  try {
    os.write((s + "\n").getBytes());
    if (echoString) {
      log(s, Project.MSG_INFO);
    }
    os.flush();
  }
  catch (Exception
         e) {
    throw new BuildException(e, getLocation());
  }
}


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

/**
 * Write this string to the telnet session.
 * @param s          the string to write
 * @param echoString if true log the string sent
 */
public void sendString(String s, boolean echoString) {
  OutputStream os = this.getOutputStream();
  try {
    os.write((s + "\n").getBytes());
    if (echoString) {
      log(s, Project.MSG_INFO);
    }
    os.flush();
  }
  catch (Exception
         e) {
    throw new BuildException(e, getLocation());
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Write this string to the telnet session.
         * @param s          the string to write
         * @param echoString if true log the string sent
         */
/**
         * Write this string to the rexec session.
         * @param s          the string to write
         * @param echoString if true log the string sent
         */
public void sendString(String s, boolean echoString) {
  OutputStream os = this.getOutputStream();
  try {
    os.write((s + "\n").getBytes());
    if (echoString) {
      log(s, Project.MSG_INFO);
    }
    os.flush();
  }
  catch (Exception
         e) {
    throw new BuildException(e, getLocation());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None