jbcFactory.releaseCache(queryConfig);
jbcQueryCache = null;
if (queryConfig.equals(tsConfig))
tsConfig = null;
queryConfig = null;
jbcFactory.releaseCache(tsConfig);
jbcTsCache = null;
tsConfig = null;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder/MultiplexingCacheInstanceManager.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/builder/MultiplexingCacheInstanceManager.java
|
Method name: void releaseCaches()
|
|
Method name: void releaseCaches()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 3
|
|
1 | jbcFactory.releaseCache(queryConfig);↵ | | 1 | jbcFactory.releaseCache(tsConfig);↵
|
2 | jbcQueryCache = null;↵ | | 2 | jbcTsCache = null;↵
|
3 | ↵ | | 3 | ↵
|
4 | if (queryConfig.equals(tsConfig))↵ | | 4 | ↵
|
5 | tsConfig = null;↵ | | |
|
6 | queryConfig = null; | | 5 | tsConfig = null;
|
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 4 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
26 | tsConfig = null; | | 32 | tsConfig = null; |
Precondition Violations (0)
Row |
Violation |