final String key = (String) keys.next(); final Attributes attributes = (Attributes) entries.get(key); final Extension extension = getExtension("", attributes); if (null != extension) { results.add(extension); }
final String key = (String) keys.next(); final Attributes attributes = (Attributes) entries.get(key); final Specification specification = getSpecification(key, attributes); if (null != specification) { results.add(specification); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/Extension.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/Specification.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
final String key = (String) keys.next();
1
final String key = (String) keys.next();
2
            final Attributes attributes = (Attributes) entries.get(key);
2
            final Attributes attributes = (Attributes) entries.get(key);
3
            final Extension extension = getExtens
3
            final Specification specification
4
ion("", attributes);
4
                = getSpecification(key, attributes);
5
            if (null != extension) {
5
            if (null != specification) {
6
                results.add(extension);
6
                results.add(specification);
7
            }
7
            }
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.0
Clones location
Number of node comparisons0