super.setUp(); jmctx = JMeterContextService.getContext(); man = new CookieManager(); man.setThreadContext(jmctx);
super(); mLabel.setText(pLabel); choiceList = new JComboBox(items); choiceList.setEditable(editable); init();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/gui/JLabeledChoice.java
Method name: void setUp() Method name: void JLabeledChoice(String, String[], boolean)
Number of AST nodes: 4 Number of AST nodes: 5
1
super.setUp();
1
super
2
            jmctx = JMeterContextService.getContext();
3
            man
2
();
3
		mLabel.setText(pLabel);
4
 = new CookieManager();
4
		choiceList = new JCo
5
            man.setThreadContext(jmctx
5
mboBox(items);
6
		choiceList.setEditable(editable);
6
);
7
		init();
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 comparisons20
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment3
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                          
    1
    super();
    1
    super.setUp();
    1
    super.setUp();
    2
    mLabel.setText(pLabel);
    Differences
    Expression1Expression2Difference
    super.setUp()mLabel.setText(pLabel)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.setUp() is a void method call, and thus it cannot be parameterized
    Expression mLabel.setText(pLabel) is a void method call, and thus it cannot be parameterized
    2
    mLabel.setText(pLabel);
    2
    jmctx = JMeterContextService.getContext();
                                                                                          
                                                                          
    3
    choiceList = new JComboBox(items);
    3
    man = new CookieManager();
                                                          
                                                                            
    4
    choiceList.setEditable(editable);
    4
    man.setThreadContext(jmctx);
    4
    man.setThreadContext(jmctx);
    5
    init();
    Differences
    Expression1Expression2Difference
    setThreadContextinitMETHOD_INVOCATION_NAME_MISMATCH
    man.setThreadContext(jmctx)init()ARGUMENT_NUMBER_MISMATCH
    manMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression man.setThreadContext(jmctx) 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 man.setThreadContext(jmctx) is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    5
    init();
    Precondition Violations (6)
    Row Violation
    1Expression super.setUp() is a void method call, and thus it cannot be parameterized
    2Expression mLabel.setText(pLabel) is a void method call, and thus it cannot be parameterized
    3Expression man.setThreadContext(jmctx) is a void method call, and thus it cannot be parameterized
    4Expression init() is a void method call, and thus it cannot be parameterized
    5Expression man.setThreadContext(jmctx) is a void method call, and thus it cannot be parameterized
    6Expression init() is a void method call, and thus it cannot be parameterized