class Test1 implements HasName {
private final String name;
public Test1(){
this("");
}
public Test1(String s){
name=s;
}
public String getName(){
return name;
}
public String getString(String s){
return s;
static class Test2 implements HasName, HasString {
private final String name;
public Test2(){
this("");
}
public Test2(String s){
name=s;
}
public String getName(){
return name;
}
public String getString(String s){
return s;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jorphan/reflect/TestFunctor.java
|
|
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jorphan/reflect/TestFunctor.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | class Test1 implements HasName {↵ | | 1 | static class Test2 implements HasName, HasString {↵
|
2 | private final String name;↵ | | 2 | private final String name;↵
|
3 | public Test1(){↵ | | 3 | public Test2(){↵
|
4 | this("");↵ | | 4 | this("");↵
|
5 | }↵ | | 5 | }↵
|
6 | public Test1(String s){↵ | | 6 | public Test2(String s){↵
|
7 | name=s;↵ | | 7 | name=s;↵
|
8 | }↵ | | 8 | }↵
|
9 | public String getName(){↵ | | 9 | public String getName(){↵
|
10 | return name;↵ | | 10 | return name;↵
|
11 | }↵ | | 11 | }↵
|
12 | public String getString(String s){↵ | | 12 | public String getString(String s){↵
|
13 | return s;↵ | | 13 | return s;↵
|
14 | | | 14 |
|
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 |