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
                }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in the same java file
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.9
    Clone typeType 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