try { _setHandled.invoke(applicationEvent, new Object[]{Boolean.TRUE}); new GlobalPreferencesCommand(_app).execute(); } catch (Exception e) { throw new RuntimeException(e); }
try { _setHandled.invoke(applicationEvent, new Object[]{Boolean.TRUE}); new AboutCommand(_app).execute(); } catch (Exception e) { throw new RuntimeException(e); }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/macosx/src/net/sourceforge/squirrel_sql/plugins/macosx/ApplicationListenerInvocationHandler.java File path: /sql12/plugins/macosx/src/net/sourceforge/squirrel_sql/plugins/macosx/ApplicationListenerInvocationHandler.java
Method name: void handlePreferences(Object) Method name: void handleAbout(Object)
Number of AST nodes: 3 Number of AST nodes: 3
1
try
1
try
2
      {
2
      {
3
         _setHandled.invoke(applicationEvent, new Object[]{Boolean.TRUE});
3
         _setHandled.invoke(applicationEvent, new Object[]{Boolean.TRUE});
4
         new GlobalPreferencesCommand(_app).execute();
4
         new AboutCommand(_app).execute();
5
      }
5
      }
6
      catch (Exception e)
6
      catch (Exception e)
7
      {
7
      {
8
         throw new RuntimeException(e);
8
         throw new RuntimeException(e);
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.1
Clones locationClones are declared in the same class
Number of node comparisons9
  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.2
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    try
    1
    try
    2
    _setHandled.invoke(applicationEvent, new Object[] {Boolean.TRUE});
    2
    _setHandled.invoke(applicationEvent, new Object[] {Boolean.TRUE});
    3
    new GlobalPreferencesCommand(_app).execute();
    3
    new GlobalPreferencesCommand(_app).execute();
    3
    new AboutCommand(_app).execute();
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.mainframe.action.GlobalPreferencesCommandnet.sourceforge.squirrel_sql.client.mainframe.action.AboutCommandSUBCLASS_TYPE_MISMATCH
    3
    new AboutCommand(_app).execute();
    Precondition Violations (0)
    Row Violation