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 GetJDBCVersionRunnable implements Runnable {
public void run() {
int count = 0;
while (getJDBCVersion && count++ < iterations) {
try {
System.out.println("Thread "+Thread.currentThread().getName());
md.getJDBCMajorVersion();
md.getJDBCMinorVersion();
if (sleepTime > 0) {
Thread.sleep(sleepTime);
}
} catch (Exception e) {
handleException(e)
Clone fragments detected by clone detection tool
File path: /sql12/test/adhoc/test/DBMetaDataConcurrencyTester.java
|
|
File path: /sql12/test/adhoc/test/DBMetaDataConcurrencyTester.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | private static class GetProductNameRunnable implements Runnable {↵ | | 1 | private static class GetJDBCVersionRunnable implements Runnable {↵
|
2 | ↵ | | 2 | ↵
|
3 | public void run() {↵ | | 3 | public void run() {↵
|
4 | int count = 0;↵ | | 4 | int count = 0;↵
|
5 | while (getProductName && count++ < iterations) {↵ | | 5 | while (getJDBCVersion && count++ < iterations) {↵
|
6 | try {↵ | | 6 | try {↵
|
7 | System.out.println("Thread "+Thread.currentThread().getName());↵ | | 7 | System.out.println("Thread "+Thread.currentThread().getName());↵
|
8 | md.getDatabaseProductName↵ | | 8 | md.getJDBCMajorVersion();↵
|
9 | ();↵ | | 9 | md.getJDBCMinorVersion();↵
|
10 | if (sleepTime > 0) {↵ | | 10 | if (sleepTime > 0) {↵
|
11 | Thread.sleep(sleepTime);↵ | | 11 | Thread.sleep(sleepTime);↵
|
12 | }↵ | | 12 | }↵
|
13 | } catch (Exception e) {↵ | | 13 | } catch (Exception e) {↵
|
14 | handleException(e) | | 14 | handleException(e)
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |