model.stopProxy(); stop.setEnabled(false); start.setEnabled(true); restart.setEnabled(false);
textMessage.setEnabled(false); messageFile.enableFile(false); randomFile.enableFile(true);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/control/gui/JMSPublisherGui.java
Method name: void actionPerformed(ActionEvent) Method name: void updateConfig(String)
Number of AST nodes: 4 Number of AST nodes: 3
1
model.stopProxy();
2
			stop.setEnabled(false);
1
textMessage.setEnabled(false);
3
			start.setEnabled(true);
2
			
4
			restart.setEnabled(fals
3
messageFile.enableFile(false);
5
e);
4
			randomFile.enableFile(true);
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 having the same super class
Number of node comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    3
    model.stopProxy();
    3
    model.stopProxy();
    Preondition Violations
    Unmatched statement model.stopProxy(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                              
    4
    stop.setEnabled(false);
    4
    stop.setEnabled(false);
    7
    messageFile.enableFile(false);
    Differences
    Expression1Expression2Difference
    setEnabledenableFileMETHOD_INVOCATION_NAME_MISMATCH
    stopmessageFileVARIABLE_NAME_MISMATCH
    javax.swing.JButtonorg.apache.jmeter.gui.util.FilePanelSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression stop.setEnabled(false) is a void method call, and thus it cannot be parameterized
    Expression messageFile.enableFile(false) is a void method call, and thus it cannot be parameterized
    Expression stop cannot be unified with expression messageFile , because common superclass javax.swing.JComponent does not declare member(s) public void enableFile(boolean)
    7
    messageFile.enableFile(false);
    5
    start.setEnabled(true);
    5
    start.setEnabled(true);
    8
    randomFile.enableFile(true);
    Differences
    Expression1Expression2Difference
    setEnabledenableFileMETHOD_INVOCATION_NAME_MISMATCH
    startrandomFileVARIABLE_NAME_MISMATCH
    javax.swing.JButtonorg.apache.jmeter.gui.util.FilePanelSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression start.setEnabled(true) is a void method call, and thus it cannot be parameterized
    Expression randomFile.enableFile(true) is a void method call, and thus it cannot be parameterized
    Expression start cannot be unified with expression randomFile , because common superclass javax.swing.JComponent does not declare member(s) public void enableFile(boolean)
    8
    randomFile.enableFile(true);
    6
    restart.setEnabled(false);
    6
    restart.setEnabled(false);
    6
    textMessage.setEnabled(false);
    Differences
    Expression1Expression2Difference
    restarttextMessageVARIABLE_NAME_MISMATCH
    javax.swing.JButtonorg.apache.jorphan.gui.JLabeledTextAreaSUBCLASS_TYPE_MISMATCH
    6
    textMessage.setEnabled(false);
    Precondition Violations (7)
    Row Violation
    1Unmatched statement model.stopProxy(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Expression stop.setEnabled(false) is a void method call, and thus it cannot be parameterized
    3Expression messageFile.enableFile(false) is a void method call, and thus it cannot be parameterized
    4Expression stop cannot be unified with expression messageFile , because common superclass javax.swing.JComponent does not declare member(s) public void enableFile(boolean)
    5Expression start.setEnabled(true) is a void method call, and thus it cannot be parameterized
    6Expression randomFile.enableFile(true) is a void method call, and thus it cannot be parameterized
    7Expression start cannot be unified with expression randomFile , because common superclass javax.swing.JComponent does not declare member(s) public void enableFile(boolean)