if (p2 != null) { parms.add(new CompoundVariable(p2)); } if (p3 != null) { parms.add(new CompoundVariable(p3)); } split.setParameters(parms); return split;
if (p3 != null) { parms.add(new CompoundVariable(p3)); } if (p4 != null) { parms.add(new CompoundVariable(p4)); } sff.setParameters(parms); return sff;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/PackageTest.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/PackageTest.java
Method name: SplitFunction SplitParams(String, String, String) Method name: StringFromFile SFFParams(String, String, String, String)
Number of AST nodes: 6 Number of AST nodes: 6
1
if (p2 != null) {
1
if (p3 != null) {
2
			parms.add(new CompoundVariable(p2));
2
			parms.add(new CompoundVariable(p3));
3
		}
3
		}
4
		if (p3 != null) {
4
		if (p4 != null) {
5
			parms.add(new CompoundVariable(p3));
5
			parms.add(new CompoundVariable(p4));
6
		}
6
		}
7
		split.setParameters(parms);
7
		sff.setParameters(parms);
8
		return split;
8
		return sff;
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 declared in the same class
Number of node comparisons17
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)29.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    4
    if (p2 != null)
    4
    if (p2 != null)
    7
    if (p3 != null)
    Differences
    Expression1Expression2Difference
    p2p3VARIABLE_NAME_MISMATCH
    7
    if (p3 != null)
    5
    parms.add(new CompoundVariable(p2));
    5
    parms.add(new CompoundVariable(p2));
    8
    parms.add(new CompoundVariable(p3));
    Differences
    Expression1Expression2Difference
    p2p3VARIABLE_NAME_MISMATCH
    8
    parms.add(new CompoundVariable(p3));
    6
    if (p3 != null)
    6
    if (p3 != null)
    9
    if (p4 != null)
    Differences
    Expression1Expression2Difference
    p3p4VARIABLE_NAME_MISMATCH
    9
    if (p4 != null)
    7
    parms.add(new CompoundVariable(p3));
    7
    parms.add(new CompoundVariable(p3));
    10
    parms.add(new CompoundVariable(p4));
    Differences
    Expression1Expression2Difference
    p3p4VARIABLE_NAME_MISMATCH
    10
    parms.add(new CompoundVariable(p4));
    8
    split.setParameters(parms);
    8
    split.setParameters(parms);
    11
    sff.setParameters(parms);
    Differences
    Expression1Expression2Difference
    splitsffVARIABLE_NAME_MISMATCH
    org.apache.jmeter.functions.SplitFunctionorg.apache.jmeter.functions.StringFromFileSUBCLASS_TYPE_MISMATCH
    11
    sff.setParameters(parms);
    9
    return split;
    9
    return split;
    12
    return sff;
    Differences
    Expression1Expression2Difference
    splitsffVARIABLE_NAME_MISMATCH
    org.apache.jmeter.functions.SplitFunctionorg.apache.jmeter.functions.StringFromFileSUBCLASS_TYPE_MISMATCH
    12
    return sff;
    Precondition Violations (0)
    Row Violation