jbcFactory.releaseCache(collectionConfig);
jbcCollectionCache = null;
if (collectionConfig.equals(queryConfig))
queryConfig = null;
if (collectionConfig.equals(tsConfig))
tsConfig = null;
collectionConfig = 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: 7
|
|
Number of AST nodes: 3
|
|
1 | jbcFactory.releaseCache(collectionConfig);↵ | | 1 | jbcFactory.releaseCache(tsConfig);↵
|
2 | jbcCollectionCache = null;↵ | | 2 | jbcTsCache = null;↵
|
3 | ↵ | | 3 | ↵
|
4 | if (collectionConfig.equals(queryConfig))↵ | | 4 | ↵
|
5 | queryConfig = null;↵ | | |
|
6 | if (collectionConfig.equals(tsConfig))↵ | | |
|
7 | tsConfig = null;↵ | | |
|
8 | collectionConfig = 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 | 8 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
19 | tsConfig = null; | | | |
Precondition Violations (0)
Row |
Violation |