File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/JBossCacheComplianceTest.java | File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache/src/test/java/org/hibernate/cache/OptimisticTreeCacheTest.java | |||
Method name: Option gen(int)
|
Method name: Option gen(int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | ManualDataVersion mdv = new ManualDataVersion(version);↵ | 1 | ManualDataVersion mdv = new ManualDataVersion( version );↵ | |
2 | Option option = new Option();↵ | 2 | Option option = new Option();↵ | |
3 | option.setDataVersion(mdv);↵ | 3 | option.setDataVersion( mdv );↵ | |
4 | return option; | 4 | return option; | |
See real code fragment | See real code fragment |
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 | 12 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | ManualDataVersion mdv = new ManualDataVersion(version); | |||||||||||||
1 | ManualDataVersion mdv = new ManualDataVersion(version); | | |||||||||||||
2 | Option option = new Option(); | 2 | Option option = new Option(); | ||||||||||||
3 | option.setDataVersion(mdv); |
| 3 | option.setDataVersion(mdv); | |||||||||||
4 | return option; | 4 | return option; |
Row | Violation |
---|---|
1 | Type org.hibernate.test.cache.jbc2.JBossCacheComplianceTest.ManualDataVersion of variable mdv does not match with type org.hibernate.cache.OptimisticTreeCacheTest.ManualDataVersion of variable mdv |