res.setSamplerData((String) subItem); } else if (nodeName.equals(TAG_RESPONSE_FILE)) { res.setResultFileName((String) subItem);
res.setResponseHeaders((String) subItem); } else if (nodeName.equals(TAG_REQUEST_HEADER)) { res.setRequestHeaders((String) subItem);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/converters/SampleResultConverter.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/converters/SampleResultConverter.java
Method name: boolean retrieveItem(HierarchicalStreamReader, UnmarshallingContext, SampleResult, Object) Method name: boolean retrieveItem(HierarchicalStreamReader, UnmarshallingContext, SampleResult, Object)
Number of AST nodes: 2 Number of AST nodes: 2
1
res.setSamplerData((String) subItem);
1
res.setResponseHeaders((String) subItem);
2
        } else if (nodeName.equals(TAG_RESPONSE_FILE)) {
2
		} else if (nodeName.equals(TAG_RE
3
            res.setResultFileName
3
QUEST_HEADER)) {
4
((String) subItem);
4
			res.setRequestHeaders((String) subItem);
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.0
Clones locationClones are in the same method
Number of node comparisons1
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    17
    res.setSamplerData((String)subItem);
    17
    res.setSamplerData((String)subItem);
    7
    res.setResponseHeaders((String)subItem);
    Differences
    Expression1Expression2Difference
    setSamplerDatasetResponseHeadersMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression res.setSamplerData((String)subItem) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression res.setResponseHeaders((String)subItem) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression res.setSamplerData((String)subItem) is a void method call, and thus it cannot be parameterized
    Expression res.setResponseHeaders((String)subItem) is a void method call, and thus it cannot be parameterized
    7
    res.setResponseHeaders((String)subItem);
    Precondition Violations (4)
    Row Violation
    1Expression res.setSamplerData((String)subItem) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression res.setResponseHeaders((String)subItem) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression res.setSamplerData((String)subItem) is a void method call, and thus it cannot be parameterized
    4Expression res.setResponseHeaders((String)subItem) is a void method call, and thus it cannot be parameterized