log("Matching catalog entry found for publicId: '"
+ matchingEntry.getPublicId() + "' location: '"
+ matchingEntry.getLocation() + "'",
Project.MSG_DEBUG);
result = filesystemLookup(matchingEntry);
if (result == null) {
result = classpathLookup(matchingEntry);
}
log("Matching catalog entry found for publicId: '"
+ matchingEntry.getPublicId() + "' location: '"
+ matchingEntry.getLocation() + "'",
Project.MSG_DEBUG);
result = filesystemLookup(matchingEntry);
if (result == null) {
result = classpathLookup(matchingEntry);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/XMLCatalog.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/XMLCatalog.java
|
Method name: InputSource resolveEntity(String, String)
|
|
Method name: InputSource resolveEntity(String, String)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | log("Matching catalog entry found for publicId: '"↵ | | 1 | log("Matching catalog entry found for publicId: '"↵
|
2 | + matchingEntry.getPublicId() + "' location: '"↵ | | 2 | + matchingEntry.getPublicId() + "' location: '"↵
|
3 | + matchingEntry.getLocation() + "'",↵ | | 3 | + matchingEntry.getLocation() + "'",↵
|
4 | Project.MSG_DEBUG);↵ | | 4 | Project.MSG_DEBUG);↵
|
|
5 | result = filesystemLookup(matchingEntry);↵ | | 5 | result = filesystemLookup(matchingEntry);↵
|
|
6 | if (result == null) {↵ | | 6 | if (result == null) {↵
|
7 | result = classpathLookup(matchingEntry);↵ | | 7 | result = classpathLookup(matchingEntry);↵
|
8 | } | | 8 | }
|
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.2 |
Clones location | Clones are in the same java file |
Number of node comparisons | 9 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
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) | 2.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
4 | log("Matching catalog entry found for publicId: '" + matchingEntry.getPublicId() + "' location: '" + matchingEntry.getLocation() + "'", Project.MSG_DEBUG); | | 5 | log("Matching catalog entry found for publicId: '" + matchingEntry.getPublicId() + "' location: '" + matchingEntry.getLocation() + "'", Project.MSG_DEBUG); |
5 | result = filesystemLookup(matchingEntry); | | 6 | result = filesystemLookup(matchingEntry); |
6 | if (result == null) | | 7 | if (result == null) |
7 | result = classpathLookup(matchingEntry); | | 8 | result = classpathLookup(matchingEntry); |
Precondition Violations (0)
Row |
Violation |