try { handler = PluginManager.getInstance() .getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_EXTERNALTOOLS); } catch (PluginHandlerNotFoundException e) { e.printStackTrace(); } initComponents();
try { handler = PluginManager.getInstance() .getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_EXTERNALTOOLS); } catch (PluginHandlerNotFoundException e) { e.printStackTrace(); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/ExternalToolsDialog.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/ExternalToolsWizardLauncher.java
Method name: void ExternalToolsDialog() Method name: void launchWizard(String, boolean)
Number of AST nodes: 3 Number of AST nodes: 2
1
try {
1
try {
2
			handler = PluginManager.getInstance()
2
			handler = PluginManager.getInstance()
3
					.getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_EXTERNALTOOLS);
3
					.getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_EXTERNALTOOLS);
4
		} catch (PluginHandlerNotFoundException e) {
4
		} catch (PluginHandlerNotFoundException e) {
5
			e.printStackTrace();
5
			e.printStackTrace();
6
		}
6
		}
7
		initComponents();
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are in different classes
Number of node comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.1
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    3
    try
    3
    try
    4
    handler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_EXTERNALTOOLS);
    4
    handler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_EXTERNALTOOLS);
    5
    initComponents();
    5
    initComponents();
    Preondition Violations
    Unmatched statement initComponents(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                            
    Precondition Violations (2)
    Row Violation
    1Unmatched statement initComponents(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Clone fragment #1 returns variables , while Clone fragment #2 returns variables handler