if (util.match("/^... clientFile (.+)$/", line)) { String f = util.group(1); existing.add(f); } else if (util.match("/^(.+) - no such file/", line)) { String f = util.group(1); nonExisting.add(f); }
String uri = normalizeURI(entry.getEntryArg(0)); String altURI = normalizeURI(entry.getEntryArg(1)); if (resolver == null) { catalogManager.debug .message(1, "Internal Error: null ApacheCatalogResolver"); } else { resolver.addURIEntry(uri, altURI, base); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/perforce/FStatP4OutputHandler.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resolver/ApacheCatalog.java
Method name: void process(String) Method name: void addEntry(CatalogEntry)
Number of AST nodes: 6 Number of AST nodes: 5
1
if (util.match("/^... clientFile (.+)$/", line)) {
2
            String f = util.group(1);
3
            existing.add(f);
4
        } else if (util.match("/^(.+) - no such file/", line)) {
5
            String f = util.group(1);
6
            nonExisting.add(f);
1
String uri = normalizeURI(entry.getEntryArg(0));
2
            String altURI = normalizeURI(entry.getEntryArg(1));
3
            if (resolver == null) {
4
                catalogManager.debug
5
                    .message(1, "Internal Error: null ApacheCatalogResolver");
6
            } else {
7
                resolver.addURIEntry(uri, altURI, base);
7
        }
8
            }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons2