if (0 != available.length) { System.out.println("Extensions Supported By Library:"); for (int i = 0; i < available.length; i++) { final Extension extension = available[ i ]; System.out.println(extension.toString()); } }
if (0 != options.length) { System.out.println("Extensions that will be used by Library if present:"); for (int i = 0; i < options.length; i++) { final Extension extension = options[ i ]; System.out.println(extension.toString()); } }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/LibraryDisplayer.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/LibraryDisplayer.java
Method name: void displayLibrary(File, Manifest) Method name: void displayLibrary(File, Manifest)
Number of AST nodes: 5 Number of AST nodes: 5
1
if (0 != available.length) {
1
if (0 != options.length) {
2
            System.out.println("Extensions Supported By Library:");
2
            System.out.println("Extensions that will be used by Library if present:");
3
            for (int i = 0; i < available.length; i++) {
3
            for (int i = 0; i < options.length; i++) {
4
                final Extension extension = available[ i ];
4
                final Extension extension = options[ i ];
5
                System.out.println(extension.toString());
5
                System.out.println(extension.toString());
6
            }
6
            }
7
        }
7
        }
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.3
Clones locationClones are in the same method
Number of node comparisons13
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)2.2
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    12
    if (0 != available.length)
    12
    if (0 != available.length)
    22
    if (0 != options.length)
    Differences
    Expression1Expression2Difference
    availableoptionsVARIABLE_NAME_MISMATCH
    22
    if (0 != options.length)
    13
    System.out.println("Extensions Supported By Library:");
    13
    System.out.println("Extensions Supported By Library:");
    23
    System.out.println("Extensions that will be used by Library if present:");
    Differences
    Expression1Expression2Difference
    "Extensions Supported By Library:""Extensions that will be used by Library if present:"LITERAL_VALUE_MISMATCH
    23
    System.out.println("Extensions that will be used by Library if present:");
    14
    for (int i = 0; i < available.length; i++)
    14
    for (int i = 0; i < available.length; i++)
    24
    for (int i = 0; i < options.length; i++)
    Differences
    Expression1Expression2Difference
    availableoptionsVARIABLE_NAME_MISMATCH
    24
    for (int i = 0; i < options.length; i++)
    15
    final Extension extension = available[i];
    15
    final Extension extension = available[i];
    25
    final Extension extension = options[i];
    Differences
    Expression1Expression2Difference
    availableoptionsVARIABLE_NAME_MISMATCH
    25
    final Extension extension = options[i];
    16
    System.out.println(extension.toString());
    26
    System.out.println(extension.toString());
    Precondition Violations (0)
    Row Violation