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)
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 GetProductVersionRunnable 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 (getProductVersion && 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.getDatabaseProductVersion();
9
                    if (sleepTime > 0) {
9
                    if (sleepTime > 0) {
10
                        Thread.sleep(sleepTime);
10
                        Thread.sleep(sleepTime);
11
                    }
11
                    }
12
                } catch (Exception e) {
12
                } catch (Exception e) {
13
                    handleException(e)
13
                    handleException(e)
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 location
Number of node comparisons0