ct = h.getValue(); res.setContentType(ct);// e.g. text/html; charset=ISO-8859-1 res.setEncodingAndType(ct);
this.title = title; init(); listeners.add(l);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/DirectoryPanel.java
Method name: HTTPSampleResult sample(URL, String, boolean, int) Method name: void DirectoryPanel(ChangeListener, String)
Number of AST nodes: 3 Number of AST nodes: 3
1
ct = h.getValue();
2
				res.setContentType(ct);// e.g. text/html; charset=ISO-8859-1
3
                res.setEncodingAndType(ct
1
this.title = title;
2
		init();
4
);
3
		listeners.add(l);
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 different classes
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    53
    ct = h.getValue();
    53
    ct = h.getValue();
    1
    this.title = title;
    Differences
    Expression1Expression2Difference
    ctthis.titleTYPE_COMPATIBLE_REPLACEMENT
    h.getValue()titleTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression this.title is a field being modified, and thus it cannot be parameterized
    1
    this.title = title;
    54
    res.setContentType(ct);
    54
    res.setContentType(ct);
    2
    init();
    Differences
    Expression1Expression2Difference
    setContentTypeinitMETHOD_INVOCATION_NAME_MISMATCH
    res.setContentType(ct)init()ARGUMENT_NUMBER_MISMATCH
    resMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression res.setContentType(ct) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression res.setContentType(ct) is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression res.setContentType(ct) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression res.setContentType(ct) is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    2
    init();
                                            
    3
    listeners.add(l);
    55
    res.setEncodingAndType(ct);
                                                                  
    Precondition Violations (10)
    Row Violation
    1Expression this.title is a field being modified, and thus it cannot be parameterized
    2Expression res.setContentType(ct) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression res.setContentType(ct) is a void method call, and thus it cannot be parameterized
    5Expression init() is a void method call, and thus it cannot be parameterized
    6Expression res.setContentType(ct) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression res.setContentType(ct) is a void method call, and thus it cannot be parameterized
    9Expression init() is a void method call, and thus it cannot be parameterized
    10Clone fragment #1 returns variables ct , while Clone fragment #2 returns variables