try {
ConfigurationDialog dialog = new ConfigurationDialog(configID);
dialog.setVisible(true);
} catch (PluginHandlerNotFoundException phnfe) {
} catch (PluginLoadingFailedException plfe) {
}
try {
ConfigurationDialog dialog = new ConfigurationDialog(id);
dialog.setVisible(true);
} catch (PluginHandlerNotFoundException phnfe) {
} catch (PluginLoadingFailedException plfe) {
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/config/GeneralOptionsDialog.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/plugin/PluginManagerDialog.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void actionPerformed(ActionEvent)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | try {↵ | | 1 | try {↵
|
2 | ConfigurationDialog dialog = new ConfigurationDialog(configID);↵ | | 2 | ConfigurationDialog dialog = new ConfigurationDialog(id);↵
|
3 | dialog.setVisible(true);↵ | | 3 | dialog.setVisible(true);↵
|
4 | } catch (PluginHandlerNotFoundException phnfe) {↵ | | 4 | } catch (PluginHandlerNotFoundException phnfe) {↵
|
5 | } catch (PluginLoadingFailedException plfe) {↵ | | 5 | } catch (PluginLoadingFailedException plfe) {↵
|
6 | } | | 6 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.9 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
21 | try | | 13 | try |
22 | ConfigurationDialog dialog = new ConfigurationDialog(configID); | | 14 | ConfigurationDialog dialog = new ConfigurationDialog(id); |
23 | | | 15 | |
Precondition Violations (0)
Row |
Violation |