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)
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 fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/AddTypeTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/AddTypeTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public static class MyAddConfigured↵ | | 1 | public static class MyAddConfiguredValue↵
|
2 | extends Task↵ | | 2 | extends Task↵
|
3 | {↵ | | 3 | {↵
|
4 | MyValue value;↵ | | 4 | MyValue value;↵
|
5 | public void addConfigured(MyValue value) {↵ | | 5 | public void addConfiguredValue(MyValue value) {↵
|
6 | log("value is " + value);↵ | | 6 | log("value is " + value);↵
|
7 | this.value = value;↵ | | 7 | this.value = value;↵
|
8 | }↵ | | 8 | }↵
|
9 | public void add(MyValue value) {↵ | | 9 | public void addValue(MyValue value) {↵
|
10 | throw new BuildException("Should not be called");↵ | | 10 | throw new BuildException("Should not be called");↵
|
11 | }↵ | | 11 | }↵
|
12 | public void execute() {↵ | | 12 | public void execute() {↵
|
13 | log("execute: value is " + value) | | 13 | log("execute: value is " + value)
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |