for (CheckUpdateListener listener: _checkUpdateListeners) { try { listener.checkUpToDate(); } catch (Exception ex) { listener.showErrorMessage( "Unexpected Exception", "Update check failed with Exception: " + ex.getMessage(), ex); } }
try { _callback.wait(); } catch (InterruptedException ignore) { // Ignore }
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/gui/UpdateManagerDialog.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/TaskExecuter.java
Method name: void actionPerformed(ActionEvent) Method name: void run()
Number of AST nodes: 3 Number of AST nodes: 2
1
for (CheckUpdateListener listener: _checkUpdateListeners) {
2
               try {
3
                  listener.checkUpToDate();
4
               } catch (Exception ex) {
5
                  listener.showErrorMessage(
6
                     "Unexpec
1
try
2
						{
3
							_callback.wait();
4
						}
7
ted Exception",
5
						catch (InterruptedException
8
                     "Update check failed with Exception: " + ex.getMessage(),
9
                     ex);
10
               }
11
            
6
 ignore)
7
						{
8
							// Ignore
12
}
9
						}
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.1
Clones locationClones are in different classes
Number of node comparisons1