return new StandardProperty( property.getName(), property.getNodeName(), type, lazyAvailable && property.isLazy(), property.isInsertable(), property.isUpdateable(), property.getGeneration() == PropertyGeneration.INSERT || property.getGeneration() == PropertyGeneration.ALWAYS, property.getGeneration() == PropertyGeneration.ALWAYS, property.isOptional(), alwaysDirtyCheck || property.isUpdateable(), property.isOptimisticLocked(), property.getCascadeStyle(), property.getValue().getFetchMode() );
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tuple/PropertyFactory.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tuple/PropertyFactory.java
Method name: VersionProperty buildVersionProperty(Property, boolean) Method name: StandardProperty buildStandardProperty(Property, boolean)
Number of AST nodes: 0 Number of AST nodes: 1
1
return new StandardProperty(
2
				property.getName(),
3
				property.getNodeName(),
4
				type,
5
				lazyAvailable && property.isLazy(),
6
				property.isInsertable(),
7
				property.isUpdateable(),
8
		        property.getGeneration() == PropertyGeneration.INSERT || property.getGeneration() == PropertyGeneration.ALWAYS,
9
				property.getGeneration() == PropertyGeneration.ALWAYS,
10
				property.isOptional(),
11
				alwaysDirtyCheck || property.isUpdateable(),
12
				property.isOptimisticLocked(),
13
				property.getCascadeStyle(),
14
		        property.getValue().getFetchMode()
15
			);
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 locationClones are declared in the same class
Number of node comparisons0