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
			}
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.2
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.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    21
    try
    13
    try
    22
    ConfigurationDialog dialog = new ConfigurationDialog(configID);
    22
    ConfigurationDialog dialog = new ConfigurationDialog(configID);
    14
    ConfigurationDialog dialog = new ConfigurationDialog(id);
    Differences
    Expression1Expression2Difference
    configIDidVARIABLE_NAME_MISMATCH
    14
    ConfigurationDialog dialog = new ConfigurationDialog(id);
    23
    dialog.setVisible(true);
    15
    dialog.setVisible(true);
    Precondition Violations (0)
    Row Violation