String msg = s_stringMgr.getString("graph.scriptPlugNeeded"); JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), msg); return;
String msg = //i18n[syntax.findNetbeansOnly=Find is only available when the Netbeans editor is used.\nSee menu File --> New Session Properties --> Tab Syntax] s_stringMgr.getString("syntax.findNetbeansOnly"); JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg); return;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/SqlScriptAcessor.java File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/netbeans/FindAction.java
Method name: void scriptTablesToSQLEntryArea(ISession, ITableInfo[]) Method name: void doActionPerformed(ISQLEntryPanel, ActionEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
String msg =
1
String msg =
2
            //i18n[syntax.findNetbeansOnly=Find is only available when the Netbeans editor is used.\nSee menu File --> New Session Properties --> Tab Syntax]
2
 s_stringMgr.getString("graph.scriptPlugNeeded");
3
            s_stringMgr.getString("syntax.findNetbeansOnly");
3
         JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), msg);
4
         JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg);
4
         return;
5
         return;
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.0
Clones locationClones are in different classes
Number of node comparisons9
  1. {Non-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)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    String msg = s_stringMgr.getString("graph.scriptPlugNeeded");
    3
    String msg = s_stringMgr.getString("graph.scriptPlugNeeded");
    2
    String msg = s_stringMgr.getString("syntax.findNetbeansOnly");
    Differences
    Expression1Expression2Difference
    "graph.scriptPlugNeeded""syntax.findNetbeansOnly"LITERAL_VALUE_MISMATCH
    2
    String msg = s_stringMgr.getString("syntax.findNetbeansOnly");
    4
    JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), msg);
    4
    JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), msg);
    3
    JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg);
    Differences
    Expression1Expression2Difference
    session_sessionVARIABLE_NAME_MISMATCH
    3
    JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg);
    5
    return;
    5
    return;
    4
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    4
    return;
    Precondition Violations (2)
    Row Violation
    1Conditional return;
    2Conditional return;