CloneSet240


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.972nested_class_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113154
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/AddTypeTest.java
213170
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/AddTypeTest.java
Next
Last
Clone Instance
1
Line Count
13
Source Line
154
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/AddTypeTest.java

public static class MyAddConfigured extends Task {
  MyValue value;

  public void addConfigured(MyValue value) {
    log("value is " + value);
    this.value = value;
  }

  public void add(MyValue value) {
    throw new BuildException("Should not be called");
  }

  public void execute() {
    log("execute: value is " + value);
  }
}


First
Previous
Clone Instance
2
Line Count
13
Source Line
170
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/AddTypeTest.java

public static class MyAddConfiguredValue extends Task {
  MyValue value;

  public void addConfiguredValue(MyValue value) {
    log("value is " + value);
    this.value = value;
  }

  public void addValue(MyValue value) {
    throw new BuildException("Should not be called");
  }

  public void execute() {
    log("execute: value is " + value);
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

public static class [[#variablefe1bf40]]extends Task {
  MyValue value;

  public void [[#variablefe1bf00]](MyValue value) {
    log("value is " + value);
    this.value = value;
  }

  public void [[#variable131ad200]](MyValue value) {
    throw new BuildException("Should not be called");
  }

  public void execute() {
    log("execute: value is " + value);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe1bf40]]
MyAddConfigured 
12[[#fe1bf40]]
MyAddConfiguredValue 
21[[#fe1bf00]]
addConfigured 
22[[#fe1bf00]]
addConfiguredValue 
31[[#131ad200]]
add 
32[[#131ad200]]
addValue