if (returnVal == JFileChooser.APPROVE_OPTION) { File file = fc.getSelectedFile(); chooseButton.setText(file.getPath()); }
if (returnVal == JFileChooser.APPROVE_OPTION) { File file = fileChooser.getSelectedFile(); pathButton.setText(file.getPath()); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/ReceiveOptionsPanel.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SecurityPanel.java
Method name: void actionPerformed(ActionEvent) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (returnVal == JFileChooser.APPROVE_OPTION) {
1
if (returnVal == JFileChooser.APPROVE_OPTION) {
2
				File file = fc.getSelectedFile();
2
				File file = fileChooser.getSelectedFile();
3
				chooseButton.setText(file.getPath());
3
				pathButton.setText(file.getPath());
4
			}
4
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are in different classes having the same super class
Number of node comparisons10
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.4
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    23
    if (returnVal == JFileChooser.APPROVE_OPTION)
    9
    if (returnVal == JFileChooser.APPROVE_OPTION)
    24
    File file = fc.getSelectedFile();
    24
    File file = fc.getSelectedFile();
    10
    File file = fileChooser.getSelectedFile();
    Differences
    Expression1Expression2Difference
    fcfileChooserVARIABLE_NAME_MISMATCH
    10
    File file = fileChooser.getSelectedFile();
    25
    chooseButton.setText(file.getPath());
    25
    chooseButton.setText(file.getPath());
    11
    pathButton.setText(file.getPath());
    Differences
    Expression1Expression2Difference
    chooseButtonpathButtonVARIABLE_NAME_MISMATCH
    11
    pathButton.setText(file.getPath());
    Precondition Violations (0)
    Row Violation