out.print(TASKS);
out.print(" | ");
out.print(TYPES);
out.println(")*>");
out.println("<!ATTLIST project");
out.println(" name CDATA #IMPLIED");
out.println(" default CDATA #IMPLIED");
out.print(TASKS);
out.print(" | ");
out.print(TYPES);
out.println(")*>");
out.println("");
out.println("<!ATTLIST target");
out.println(" id ID #IMPLIED");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/AntStructure.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/AntStructure.java
|
Method name: void printHead(PrintWriter, Enumeration, Enumeration)
|
|
Method name: void printTargetDecl(PrintWriter)
|
Number of AST nodes: 7
|
|
Number of AST nodes: 7
|
|
1 | out.print(TASKS);↵ | | 1 | out.print(TASKS);↵
|
2 | out.print(" | ");↵ | | 2 | out.print(" | ");↵
|
3 | out.print(TYPES);↵ | | 3 | out.print(TYPES);↵
|
4 | out.println(")*>");↵ | | 4 | out.println(")*>");↵
|
5 | out.println("<!ATTLIST project");↵ | | 5 | out.println("");↵
|
|
6 | out.println(" name CDATA #IMPLIED");↵ | | 6 | out.println("<!ATTLIST target");↵
|
7 | out.println(" default CDATA #IMPLIED"); | | 7 | out.println(" id ID #IMPLIED");
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 49 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
23 | out.print(TASKS); | | 2 | out.print(TASKS); |
24 | out.print(" | "); | | 3 | out.print(" | "); |
25 | out.print(TYPES); | | 4 | out.print(TYPES); |
26 | out.println(")*>"); | | 5 | out.println(")*>"); |
27 | out.println("<!ATTLIST project"); | | 6 | out.println(""); |
28 | out.println(" name CDATA #IMPLIED"); | | 7 | out.println("<!ATTLIST target"); |
29 | out.println(" default CDATA #IMPLIED"); | | 8 | out.println(" id ID #IMPLIED"); |
Precondition Violations (0)
Row |
Violation |