if (isAlwaysAdjustAllColWidths()) { SwingUtilities.invokeLater(new Runnable() { public void run() { adjustAllColWidths(true); } }); }
synchronized (this) { SwingUtilities.invokeLater(new Runnable() { public void run() { new ErrorDialog(_app.getMainFrame(), msg, th).setVisible(true); } }); }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/ButtonTableHeader.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ConnectToAliasCallBack.java
Method name: void initColWidths() Method name: void showErrorDialog(String, Throwable)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (isAlwaysAdjustAllColWidths())
1
synchronized (this)
2
      {
2
      {
3
         SwingUtilities.invokeLater(new Runnable()
3
         SwingUtilities.invokeLater(new Runnable()
4
         {
4
         {
5
            public void run()
5
            public void run()
6
            {
6
            {
7
               adjustAllColWidths(true);
7
               new ErrorDialog(_app.getMainFrame(), msg, th).setVisible(true);
8
            }
8
            }
9
         });
9
         });
10
      }
10
      }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons1