if (!converge()) {
if (log.isDebugEnabled()) {
log.debug("Warning : equation system resolving is unstable");
}
}
if (log.isDebugEnabled()) {
log.debug("Dropping cookie with null value " + c.toString());
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/Spline3.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/CookieManager.java
|
Method name: void jacobi()
|
|
Method name: void add(Cookie)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 2
|
|
1 | if (!converge()) {↵ | | |
|
2 | if (log.isDebugEnabled()) {↵ | | 1 | if (log.isDebugEnabled()) {↵
|
3 | log.debug("Warning : equation system resolving is unstable");↵ | | |
|
4 | }↵ | | |
|
5 | ↵ | | 2 | log.debug("Dropping cookie with null value " + c.toString());↵
|
6 | } | | 3 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 5 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 2 |
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) | 5.5 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
5 | if (log.isDebugEnabled()) | | 5 | if (log.isDebugEnabled()) |
6 | log.debug("Warning : equation system resolving is unstable"); | | 6 | log.debug("Dropping cookie with null value " + c.toString()); |
Precondition Violations (0)
Row |
Violation |