Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 3 | 0.974 | nested_class_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 146 | E:/TSE/Projects-CloneDR/sql12/test/adhoc/test/DBMetaDataConcurrencyTester.java |
2 | 15 | 164 | E:/TSE/Projects-CloneDR/sql12/test/adhoc/test/DBMetaDataConcurrencyTester.java |
| |||||
private static class GetProductNameRunnable implements Runnable { public void run() { int count = 0; while (getProductName && count++ < iterations) { try { System.out.println("Thread " + Thread.currentThread().getName()); md.getDatabaseProductName(); if (sleepTime > 0) { Thread.sleep(sleepTime); } } catch (Exception e) { handleException(e); } } } } |
| |||||
private static class GetProductVersionRunnable implements Runnable { public void run() { int count = 0; while (getProductVersion && count++ < iterations) { try { System.out.println("Thread " + Thread.currentThread().getName()); md.getDatabaseProductVersion(); if (sleepTime > 0) { Thread.sleep(sleepTime); } } catch (Exception e) { handleException(e); } } } } |
| |||
private static class [[#variable1cc0f120]]implements Runnable { public void run() { int count = 0; while ( [[#variable1cc0f080]]&& count++ < iterations) { try { System.out.println("Thread " + Thread.currentThread().getName()); md. [[#variable1cc0f000]](); if (sleepTime > 0) { Thread.sleep(sleepTime); } } catch (Exception e) { handleException(e); } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1cc0f120]] | GetProductNameRunnable |
1 | 2 | [[#1cc0f120]] | GetProductVersionRunnable |
2 | 1 | [[#1cc0f080]] | getProductName |
2 | 2 | [[#1cc0f080]] | getProductVersion |
3 | 1 | [[#1cc0f000]] | getDatabaseProductName |
3 | 2 | [[#1cc0f000]] | getDatabaseProductVersion |