try { if (extension != null) a = (AbstractColumbaAction) extension .instanciateExtension(new Object[] { controller }); } catch (Exception e) { LOG.severe(e.getMessage()); if (Logging.DEBUG) e.printStackTrace(); }
try { if (extension != null) a = (AbstractColumbaAction) extension .instanciateExtension(new Object[] { frameMediator }); } catch (PluginException e) { LOG.severe(e.getMessage()); if (Logging.DEBUG) e.printStackTrace(); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/menu/MenuXMLDecoder.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/toolbar/ToolBarXMLDecoder.java
Method name: AbstractColumbaAction getAction(String, IFrameMediator) Method name: AbstractColumbaAction getAction(String, IFrameMediator)
Number of AST nodes: 3 Number of AST nodes: 3
1
try {
1
try {
2
			if (extension != null)
2
			if (extension != null)
3
				a = (AbstractColumbaAction) extension
3
				a = (AbstractColumbaAction) extension
4
						.instanciateExtension(new Object[] { controller });
4
						.instanciateExtension(new Object[] { frameMediator });
5
		} catch (Exception e) {
5
		} catch (PluginException e) {
6
			LOG.severe(e.getMessage());
6
			LOG.severe(e.getMessage());
7
			if (Logging.DEBUG)
7
			if (Logging.DEBUG)
8
				e.printStackTrace();
8
				e.printStackTrace();
9
		}
9
		}
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.4
Clones locationClones are in different classes
Number of node comparisons5
  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.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    7
    try
    7
    try
    7
    try
    Differences
    Expression1Expression2Difference
    java.lang.Exceptionorg.columba.api.plugin.PluginExceptionSUBCLASS_TYPE_MISMATCH
    java.lang.Exceptionorg.columba.api.plugin.PluginExceptionSUBCLASS_TYPE_MISMATCH
    java.lang.Exceptionorg.columba.api.plugin.PluginExceptionSUBCLASS_TYPE_MISMATCH
    java.lang.Exceptionorg.columba.api.plugin.PluginExceptionSUBCLASS_TYPE_MISMATCH
    7
    try
    8
    if (extension != null)
    8
    if (extension != null)
    9
    a = (AbstractColumbaAction)extension.instanciateExtension(new Object[] {controller});
    9
    a = (AbstractColumbaAction)extension.instanciateExtension(new Object[] {controller});
    9
    a = (AbstractColumbaAction)extension.instanciateExtension(new Object[] {frameMediator});
    Differences
    Expression1Expression2Difference
    controllerframeMediatorVARIABLE_NAME_MISMATCH
    9
    a = (AbstractColumbaAction)extension.instanciateExtension(new Object[] {frameMediator});
    Precondition Violations (0)
    Row Violation