Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 2 | 0.957 | class_body |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 120 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/RExecTask.java |
2 | 19 | 257 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java |
| |||||
{ private boolean echoString = true; /** * Execute the write exec task. * @param rexec the task to use * @throws BuildException on error */ public void execute(AntRExecClient rexec) throws BuildException { rexec.sendString(taskString, echoString); } /** * Whether or not the message should be echoed to the log. * Defaults to <code>true</code>. * @param b a <code>boolean</code> value */ public void setEcho(boolean b) { echoString = b; } } |
| |||||
{ private boolean echoString = true; /** * Execute the write task. * @param telnet the task to use * @throws BuildException on error */ public void execute(AntTelnetClient telnet) throws BuildException { telnet.sendString(taskString, echoString); } /** * Whether or not the message should be echoed to the log. * Defaults to <code>true</code>. * @param b a <code>boolean</code> value */ public void setEcho(boolean b) { echoString = b; } } |
| |||
{ private boolean echoString = true; /** * Execute the write task. * @param telnet the task to use * @throws BuildException on error */ /** * Execute the write exec task. * @param rexec the task to use * @throws BuildException on error */ public void execute( [[#variable131443e0]] [[#variable13144360]]) throws BuildException { [[#variable13144360]].sendString(taskString, echoString); } /** * Whether or not the message should be echoed to the log. * Defaults to <code>true</code>. * @param b a <code>boolean</code> value */ public void setEcho(boolean b) { echoString = b; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#131443e0]] | AntRExecClient |
1 | 2 | [[#131443e0]] | AntTelnetClient |
2 | 1 | [[#13144360]] | rexec |
2 | 2 | [[#13144360]] | telnet |