if ( !s.isFormula() ) {
Column col = (Column) s;
if ( !distinctColumns.add( col.getName() ) ) {
throw new MappingException( "Repeated column in mapping for collection: "
+ getRole()
+ " column: "
+ col.getName() );
}
}
Column col = (Column) columnOrFormula;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/Collection.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/PersistentClass.java
|
Method name: void checkColumnDuplication(java.util.Set, Iterator)
|
|
Method name: void checkColumnDuplication(Set, Iterator)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 1
|
|
1 | if ( !s.isFormula() ) {↵ | | |
|
2 | Column col = (Column) s;↵ | | |
|
3 | if ( !distinctColumns.add( col.getName() ) ) {↵ | | |
|
4 | throw new MappingException( "Repeated column in mapping for collection: "↵ | | |
|
5 | + getRole()↵ | | |
|
6 | + " column: "↵ | | |
|
7 | + col.getName() );↵ | | |
|
8 | }↵ | | |
|
9 | } | | 1 | Column col = (Column) columnOrFormula;
|
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 4 |