Object id = ForeignKeys.getEntityIdentifierIfNotUnsaved( getAssociatedEntityName(), value, session ); if ( id == null ) { throw new AssertionFailure( "cannot cache a reference to an object with a null id: " + getAssociatedEntityName() ); } return getIdentifierType( session ).disassemble( id, session, owner );
Object id = ForeignKeys.getEntityIdentifierIfNotUnsaved( getAssociatedEntityName(), value, session ); if (id==null) { throw new AssertionFailure( "cannot cache a reference to an object with a null id: " + getAssociatedEntityName() ); } return getIdentifierType(session).disassemble(id, session, owner);
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/type/ManyToOneType.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/type/SpecialOneToOneType.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Object id = ForeignKeys.getEntityIdentifierIfNotUnsaved( 
1
Object id = ForeignKeys.getEntityIdentifierIfNotUnsaved( 
2
					getAssociatedEntityName(), 
2
getAssociatedEntityName(), 
3
					value, 
3
value, 
4
					session
4
session
5
			);
5
 );
6
			if ( id == null ) {
6
			if (id==null) {
7
				throw new AssertionFailure(
7
				throw new AssertionFailure(
8
						"cannot cache a reference to an object with a null id: " + 
8
						"cannot cache a reference to an object with a null id: " + 
9
						getAssociatedEntityName()
9
						getAssociatedEntityName() 
10
				);
10
				);
11
			}
11
			}
12
			return getIdentifierType( session ).disassemble( id, session, owner );
12
			return getIdentifierType(session).disassemble(id, session, owner);
13
		
13
		
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0