this.title = title; this.filetype = filetype; init();
this.result = result; this.threadGroup = threadGroup; this.hostname = HOSTNAME; values = new String[variableNames.length]; saveVars(jmvars);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/FileListPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/samplers/SampleEvent.java
Method name: void FileListPanel(String, String) Method name: void SampleEvent(SampleResult, String, JMeterVariables)
Number of AST nodes: 3 Number of AST nodes: 5
1
this.title = title;
1
this.
2
		this.filetype = filetype;
3
		init(
2
result = result;
3
		this.threadGroup = threadGroup;
4
		this.hostname = HOSTNAME;
5
		values = new String[variableNames.length];
4
);
6
		saveVars(jmvars);
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 comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                                
    1
    this.result = result;
    1
    this.title = title;
    1
    this.title = title;
    2
    this.threadGroup = threadGroup;
    Differences
    Expression1Expression2Difference
    titlethreadGroupVARIABLE_NAME_MISMATCH
    titlethreadGroupVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.title is a field being modified, and thus it cannot be parameterized
    Expression this.threadGroup is a field being modified, and thus it cannot be parameterized
    2
    this.threadGroup = threadGroup;
    2
    this.filetype = filetype;
    2
    this.filetype = filetype;
    3
    this.hostname = HOSTNAME;
    Differences
    Expression1Expression2Difference
    filetypehostnameVARIABLE_NAME_MISMATCH
    filetypeHOSTNAMEVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.filetype is a field being modified, and thus it cannot be parameterized
    Expression this.hostname is a field being modified, and thus it cannot be parameterized
    3
    this.hostname = HOSTNAME;
                                                                                          
    4
    values = new String[variableNames.length];
    3
    init();
    3
    init();
    5
    saveVars(jmvars);
    Differences
    Expression1Expression2Difference
    initsaveVarsMETHOD_INVOCATION_NAME_MISMATCH
    init()saveVars(jmvars)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression saveVars(jmvars) is a void method call, and thus it cannot be parameterized
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression saveVars(jmvars) is a void method call, and thus it cannot be parameterized
    5
    saveVars(jmvars);
    Precondition Violations (10)
    Row Violation
    1Expression this.title is a field being modified, and thus it cannot be parameterized
    2Expression this.threadGroup is a field being modified, and thus it cannot be parameterized
    3Expression this.filetype is a field being modified, and thus it cannot be parameterized
    4Expression this.hostname is a field being modified, and thus it cannot be parameterized
    5Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression init() is a void method call, and thus it cannot be parameterized
    7Expression saveVars(jmvars) is a void method call, and thus it cannot be parameterized
    8Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression init() is a void method call, and thus it cannot be parameterized
    10Expression saveVars(jmvars) is a void method call, and thus it cannot be parameterized