try {
configHandler = PluginManager.getInstance()
.getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_CONFIG);
} catch (Exception ex) {
ex.printStackTrace();
}
initComponents();
pack();
setLocationRelativeTo(null);
setVisible(true);
try {
handler = PluginManager.getInstance()
.getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_EXTERNALTOOLS);
} catch (PluginHandlerNotFoundException e) {
e.printStackTrace();
}
initComponents();
pack();
setLocationRelativeTo(null);
setVisible(true);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/plugin/PluginManagerDialog.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/ExternalToolsDialog.java
|
Method name: void PluginManagerDialog()
|
|
Method name: void ExternalToolsDialog()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | try {↵ | | 1 | try {↵
|
2 | configHandler = PluginManager.getInstance()↵ | | 2 | handler = PluginManager.getInstance()↵
|
3 | .getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_CONFIG);↵ | | 3 | .getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_EXTERNALTOOLS);↵
|
4 | } catch (Exception ex) {↵ | | 4 | } catch (PluginHandlerNotFoundException e) {↵
|
5 | ex.printStackTrace();↵ | | 5 | e.printStackTrace();↵
|
6 | }↵ | | 6 | }↵
|
|
7 | initComponents();↵ | | 7 | initComponents();↵
|
|
8 | pack();↵ | | 8 | pack();↵
|
9 | setLocationRelativeTo(null);↵ | | 9 | setLocationRelativeTo(null);↵
|
10 | setVisible(true); | | 10 | setVisible(true);
|
See real code fragment |
|
See real code fragment |
Summary
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 20 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 6 |
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) | 6.5 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
2 | try | | 3 | try |
3 | configHandler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_CONFIG); | | 4 | handler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_EXTERNALTOOLS); |
4 | initComponents(); | | 5 | initComponents(); |
5 | pack(); | | 6 | pack(); |
6 | setLocationRelativeTo(null); | | 7 | setLocationRelativeTo(null); |
7 | setVisible(true); | | 8 | setVisible(true); |
Precondition Violations (2)
Row |
Violation |
1 | Expression configHandler is a field being modified, and thus it cannot be parameterized |
2 | Expression handler is a field being modified, and thus it cannot be parameterized |