CloneSet480


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4210.986method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14402
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/Target.java
24417
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/Target.java
Next
Last
Clone Instance
1
Line Count
4
Source Line
402
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/Target.java

/**
 * Replaces all occurrences of the given task in the list
 * of children with the replacement data type wrapper.
 *
 * @param el The task to replace.
 *           Must not be <code>null</code>.
 * @param o  The data type wrapper to replace <code>el</code> with.
 */
void replaceChild(Task el, RuntimeConfigurable o) {
  int index;
  while ((index = children.indexOf(el)) >= 0) {
    children.set(index, o);
  }
}


First
Previous
Clone Instance
2
Line Count
4
Source Line
417
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/Target.java

/**
 * Replaces all occurrences of the given task in the list
 * of children with the replacement task.
 *
 * @param el The task to replace.
 *           Must not be <code>null</code>.
 * @param o  The task to replace <code>el</code> with.
 */
void replaceChild(Task el, Task o) {
  int index;
  while ((index = children.indexOf(el)) >= 0) {
    children.set(index, o);
  }
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Replaces all occurrences of the given task in the list
     * of children with the replacement data type wrapper.
     *
     * @param el The task to replace.
     *           Must not be <code>null</code>.
     * @param o  The data type wrapper to replace <code>el</code> with.
     */
/**
     * Replaces all occurrences of the given task in the list
     * of children with the replacement task.
     *
     * @param el The task to replace.
     *           Must not be <code>null</code>.
     * @param o  The task to replace <code>el</code> with.
     */
void replaceChild(Task el, [[#variable13145f00]] o) {
  int index;
  while ((index = children.indexOf(el)) >= 0) {
    children.set(index, o);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#13145f00]]
RuntimeConfigurable 
12[[#13145f00]]
Task