File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/config/ProxyConfigurationDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/ReceiveOptionsPanel.java | |||
Method name: void updateProxyDataPanel()
|
Method name: void actionPerformed(ActionEvent)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 4 | |||
1 | boolean enabled = useProxyRadioButton.isSelected();↵ | 1 | boolean ↵ | |
2 | proxyHostLabel.setEnabled(enabled);↵ | |||
3 | proxyHostField.setEnabled(enabled);↵ | |||
4 | proxyPortLabel.setEnabled(enabled);↵ | |||
5 | proxyPortField.setEnabled(enabled);↵ | |||
6 | updateOkButton(↵ | 2 | playSound = playsoundCheckBox.isSelected();↵ | |
3 | defaultRadioButton.setEnabled(playSound);↵ | |||
4 | chooseButton.setEnabled(playSound);↵ | |||
7 | ); | 5 | 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 | 24 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 2 |
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 | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | boolean enabled = useProxyRadioButton.isSelected(); |
| 16 | boolean playSound = playsoundCheckBox.isSelected(); | ||||||||||||||||
2 | proxyHostLabel.setEnabled(enabled); | | ||||||||||||||||||
3 | proxyHostField.setEnabled(enabled); |
| 17 | defaultRadioButton.setEnabled(playSound); | ||||||||||||||||
4 | proxyPortLabel.setEnabled(enabled); |
| 18 | chooseButton.setEnabled(playSound); | ||||||||||||||||
5 | proxyPortField.setEnabled(enabled); |
| 19 | chooseRadioButton.setEnabled(playSound); | ||||||||||||||||
6 | updateOkButton(); | |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables enabled , while Clone fragment #2 returns variables |