try { printJob.print(); } catch (Exception ex) { throw new RuntimeException(ex); }
if (reader != null) { try { reader.close(); } catch (IOException e) { e.printStackTrace(); } }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/ZoomPrintController.java File path: /sql12/test/src/net/sourceforge/squirrel_sql/client/update/UpdateXmlSerializerTest.java
Method name: void onPrint() Method name: void printFile(String)
Number of AST nodes: 2 Number of AST nodes: 3
1
try
2
         {
3
            printJob.print
1
if (reader != null) {
2
                try { 
4
();
3
                    reader.close(); 
5
         }
4
        
6
         catch (Exception ex)
5
        } catch (IOException e
7
  
6
) { 
8
       {
7
       
9
            throw new RuntimeException(ex);
8
            
9
 e.printStackTrace();
10
                }
10
         }
11
            }
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 comparisons0