StringBuffer sb = new StringBuffer(40);
sb.append("MaxPool: ");
sb.append(maxPool);
sb.append(" Timeout: ");
sb.append(getTimeout());
sb.append(" TrimInt: ");
sb.append(getTrimInterval());
sb.append(" Auto-Commit: ");
sb.append(isAutocommit());
log.debug(sb.toString());
Thread.currentThread().setName("XPathTwo");
Thread.sleep(500);
synchronized (baton) {
assertEquals("u3",sxp2.execute());
assertEquals("u4",sxp2.execute());
baton.pass();
assertEquals("u1",sxp2.execute());
baton.pass();
assertEquals("u3",sxp2.execute());
baton.done();
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
|
|
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/PackageTest.java
|
Method name: ResourceLimitingJdbcDataSource initPool(String)
|
|
Method name: void XPathThread2()
|
Number of AST nodes: 10
|
|
Number of AST nodes: 10
|
|
1 | StringBuffer sb = new StringBuffer(40);↵ | | |
|
2 | sb.append("MaxPool: ");↵ | | |
|
3 | sb.append(maxPool);↵ | | |
|
4 | sb.append(" Timeout: ");↵ | | |
|
5 | sb.append(getTimeo↵ | | 1 | Thread.currentThread().setName("XPathTwo");↵
|
| | | 2 | Thread.sleep(500);↵
|
| | | 3 | synchronized (baton) {↵
|
| | | 4 | assertEquals("u3",sxp2.execute());↵
|
6 | ut());↵ | | 5 | assertEquals("u4",sxp2.execute());↵
|
7 | sb.append(" TrimInt: ");↵ | | |
|
8 | sb.append(getTrimInterval());↵ | | |
|
9 | sb.append(" Auto-Commit: ");↵ | | |
|
10 | sb.append(isAutocommit());↵ | | |
|
11 | log.debug(sb.toString()); | | 6 | baton.pass();↵
|
| | | 7 | assertEquals("u1",sxp2.execute());↵
|
| | | 8 | baton.pass();↵
|
| | | 9 | assertEquals("u3",sxp2.execute());↵
|
| | | 10 | baton.done();↵
|
| | | 11 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 30 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |