if (treePath != null) { return getTree(Arrays.asList(treePath)); } return this;
if (treePath != null) { return getArray(Arrays.asList(treePath)); } return getArray();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/HashTree.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/HashTree.java
Method name: HashTree getTree(Object[]) Method name: Object[] getArray(Object[])
Number of AST nodes: 3 Number of AST nodes: 3
1
if (treePath != null) {
1
if (treePath != null) {
2
			return getTree(Arrays.asList(treePath));
2
			return getArray(Arrays.asList(treePath));
3
		}
3
		}
4
		return this;
4
		return getArray();
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are declared in the same class
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.4
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (treePath != null)
    1
    if (treePath != null)
                                                                                            
    2
    return getArray(Arrays.asList(treePath));
    Preondition Violations
    Unmatched statement return getArray(Arrays.asList(treePath)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    Unmatched return getArray(Arrays.asList(treePath));
    2
    return getArray(Arrays.asList(treePath));
    2
    return getTree(Arrays.asList(treePath));
    2
    return getTree(Arrays.asList(treePath));
    Preondition Violations
    Unmatched statement return getTree(Arrays.asList(treePath)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    Unmatched return getTree(Arrays.asList(treePath));
                                                                                          
                                              
    3
    return getArray();
    Preondition Violations
    Unmatched return getArray();
    3
    return getArray();
    3
    return this;
    3
    return this;
    Preondition Violations
    Unmatched return this;
                                  
    Precondition Violations (6)
    Row Violation
    1Unmatched statement return getArray(Arrays.asList(treePath)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched return getArray(Arrays.asList(treePath));
    3Unmatched statement return getTree(Arrays.asList(treePath)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched return getTree(Arrays.asList(treePath));
    5Unmatched return getArray();
    6Unmatched return this;