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);
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.2
Clones locationClones are in different classes having the same super class
Number of node comparisons20
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)3.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    try
    2
    try
    3
    try
    Differences
    Expression1Expression2Difference
    java.lang.Exceptionorg.columba.api.plugin.PluginHandlerNotFoundExceptionSUBCLASS_TYPE_MISMATCH
    exeVARIABLE_NAME_MISMATCH
    java.lang.Exceptionorg.columba.api.plugin.PluginHandlerNotFoundExceptionSUBCLASS_TYPE_MISMATCH
    exeVARIABLE_NAME_MISMATCH
    java.lang.Exceptionorg.columba.api.plugin.PluginHandlerNotFoundExceptionSUBCLASS_TYPE_MISMATCH
    3
    try
    3
    configHandler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_CONFIG);
    3
    configHandler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_CONFIG);
    4
    handler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_EXTERNALTOOLS);
    Differences
    Expression1Expression2Difference
    configHandlerhandlerVARIABLE_NAME_MISMATCH
    ORG_COLUMBA_CORE_CONFIGORG_COLUMBA_CORE_EXTERNALTOOLSVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression configHandler is a field being modified, and thus it cannot be parameterized
    Expression handler is a field being modified, and thus it cannot be parameterized
    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
    1Expression configHandler is a field being modified, and thus it cannot be parameterized
    2Expression handler is a field being modified, and thus it cannot be parameterized