File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/config/GeneralOptionsDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/ReceiveOptionsPanel.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void actionPerformed(ActionEvent)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | boolean enabled = overwriteCheckBox.isSelected();↵ | 1 | boolean playSound = playsoundCheckBox.isSelected();↵ | |
2 | mainFontLabel.setEnabled(enabled);↵ | 2 | ↵ | |
3 | mainFontButton.setEnabled(enabled);↵ | |||
4 | textFontLabel↵ | 3 | defaultRadioButton.setEnabled(playSound);↵ | |
5 | .setEnabled(enabled);↵ | 4 | chooseButton.setEnabled(↵ | |
6 | textFont↵ | 5 | playSound);↵ | |
7 | Button.setEnabled(enabled); | 6 | chooseRadioButton.setEnabled(playSound); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 20 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38 | boolean enabled = overwriteCheckBox.isSelected(); |
| 16 | boolean playSound = playsoundCheckBox.isSelected(); | ||||||||||||||||
39 | mainFontLabel.setEnabled(enabled); |
| 19 | chooseRadioButton.setEnabled(playSound); | ||||||||||||||||
40 | mainFontButton.setEnabled(enabled); |
| 18 | chooseButton.setEnabled(playSound); | ||||||||||||||||
41 | textFontLabel.setEnabled(enabled); |
| 17 | defaultRadioButton.setEnabled(playSound); | ||||||||||||||||
42 | textFontButton.setEnabled(enabled); | |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables enabled , while Clone fragment #2 returns variables |