if (null != specificationVersion) { sb.append(SPECIFICATION_VERSION); sb.append(brace); sb.append(specificationVersion); sb.append(StringUtils.LINE_SEP); } if (null != specificationVendor) { sb.append(SPECIFICATION_VENDOR); sb.append(brace); sb.append(specificationVendor); sb.append(StringUtils.LINE_SEP); } if (null != implementationTitle) { sb.append(IMPLEMENTATION_TITLE); sb.append(brace); sb.append(implementationTitle); sb.append(StringUtils.LINE_SEP); } if (null != implementationVersion) { sb.append(IMPLEMENTATION_VERSION); sb.append(brace); sb.append(implementationVersion); sb.append(StringUtils.LINE_SEP);
if (null != specificationVendor) { sb.append(SPECIFICATION_VENDOR); sb.append(brace); sb.append(specificationVendor); sb.append(StringUtils.LINE_SEP); } if (null != implementationTitle) { sb.append(IMPLEMENTATION_TITLE); sb.append(brace); sb.append(implementationTitle); sb.append(StringUtils.LINE_SEP); } if (null != implementationVersion) { sb.append(IMPLEMENTATION_VERSION); sb.append(brace); sb.append(implementationVersion); sb.append(StringUtils.LINE_SEP); } if (null != implementationVendor) { sb.append(IMPLEMENTATION_VENDOR); sb.append(brace); sb.append(implementationVendor); sb.append(StringUtils.LINE_SEP);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/Specification.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
if (null != specificationVersion) {
2
            sb.append(SPECIFICATION_VERSION);
3
            sb.append(brace);
4
            sb.append(specificationVersion);
5
            sb.append(StringUtils.LINE_SEP);
6
        }
7
        if (null != specificationVendor) {
1
if (null != specificationVendor) {
8
            sb.append(SPECIFICATION_VENDOR);
2
            sb.append(SPECIFICATION_VENDOR);
9
            sb.append(brace);
3
            sb.append(brace);
10
            sb.append(specificationVendor);
4
            sb.append(specificationVendor);
11
            sb.append(StringUtils.LINE_SEP);
5
            sb.append(StringUtils.LINE_SEP);
12
        }
6
        }
13
        if (null != implementationTitle) {
7
        if (null != implementationTitle) {
14
            sb.append(IMPLEMENTATION_TITLE);
8
            sb.append(IMPLEMENTATION_TITLE);
15
            sb.append(brace);
9
            sb.append(brace);
16
            sb.append(implementationTitle);
10
            sb.append(implementationTitle);
17
            sb.append(StringUtils.LINE_SEP);
11
            sb.append(StringUtils.LINE_SEP);
18
        }
12
        }
19
        if (null != implementationVersion) {
13
        if (null != implementationVersion) {
20
            sb.append(IMPLEMENTATION_VERSION);
14
            sb.append(IMPLEMENTATION_VERSION);
21
            sb.append(brace);
15
            sb.append(brace);
22
            sb.append(implementationVersion);
16
            sb.append(implementationVersion);
23
            sb.append(StringUtils.LINE_SEP);
17
            sb.append(StringUtils.LINE_SEP);
24
        
18
        }
19
        if (null != implementationVendor) {
20
            sb.append(IMPLEMENTATION_VENDOR);
21
            sb.append(brace);
22
            sb.append(implementationVendor);
23
            sb.append(StringUtils.LINE_SEP);
24
        
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