if (treePath != null) { return getTree(Arrays.asList(treePath)); } return this;
if (treePath != null) { return list(Arrays.asList(treePath)); } return list();
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: Collection list(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 list(Arrays.asList(treePath));
3
		}
3
		}
4
		return this;
4
		return list();
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.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (treePath != null)
    1
    if (treePath != null)
                                                                                    
    2
    return list(Arrays.asList(treePath));
    Preondition Violations
    Unmatched statement return list(Arrays.asList(treePath)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    Unmatched return list(Arrays.asList(treePath));
    2
    return list(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 list();
    Preondition Violations
    Unmatched statement return list(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    Unmatched return list();
    3
    return list();
    3
    return this;
    3
    return this;
    Preondition Violations
    Unmatched return this;
                                  
    Precondition Violations (8)
    Row Violation
    1Unmatched statement return list(Arrays.asList(treePath)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched return list(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 statement return list(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6Unmatched return list();
    7Unmatched return this;
    8The refactoring of the clones is infeasible, because the number of macthed statements is equal to zero