if ( uk == null ) {
uk = new UniqueKey();
uk.setName( keyName );
uk.setTable( this );
uniqueKeys.put( keyName, uk );
}
if (localOnly || version != null) {
option = new Option();
option.setCacheModeLocal(localOnly);
option.setDataVersion(version);
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/Table.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/util/CacheHelper.java
|
Method name: UniqueKey getOrCreateUniqueKey(String)
|
|
Method name: Node addNode(Cache, Fqn, boolean, boolean, DataVersion)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | if ( uk == null ) {↵ | | 1 | if (localOnly || version != null) {↵
|
2 | uk = new UniqueKey();↵ | | |
|
3 | uk.setName( keyName );↵ | | |
|
4 | uk.setTable( this );↵ | | |
|
5 | uniqueKeys.put( keyName, uk );↵ | | |
|
6 | ↵ | | 2 | option = new Option();↵
|
| | | 3 | option.setCacheModeLocal(localOnly);↵
|
| | | 4 | option.setDataVersion(version);↵
|
7 | } | | 5 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
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 | 1 |