ColumnNames binding = (ColumnNames) columnNameBindingPerTable.get(currentTable); if (binding != null) { finalName = (String) binding.logicalToPhysical.get( logicalName ); } String key = buildTableNameKey( currentTable.getSchema(), currentTable.getCatalog(), currentTable.getName() ); TableDescription description = (TableDescription) tableNameBinding.get(key); if (description != null) currentTable = description.denormalizedSupertable;
ColumnNames binding = (ColumnNames) columnNameBindingPerTable.get(currentTable); if (binding != null) { logical = (String) binding.physicalToLogical.get( physicalName ); } String key = buildTableNameKey( currentTable.getSchema(), currentTable.getCatalog(), currentTable.getName() ); description = (TableDescription) tableNameBinding.get(key); if (description != null) currentTable = description.denormalizedSupertable;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/Mappings.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/Mappings.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
ColumnNames binding = (ColumnNames) columnNameBindingPerTable.get(currentTable);
1
ColumnNames binding = (ColumnNames) columnNameBindingPerTable.get(currentTable);
2
			if (binding != null) {
2
			if (binding != null) {
3
				finalName = (String) binding.logicalToPhysical.get( logicalName );
3
				logical = (String) binding.physicalToLogical.get( physicalName );
4
			}
4
			}
5
			String key = buildTableNameKey( currentTable.getSchema(), currentTable.getCatalog(), currentTable.getName() );
5
			String key = buildTableNameKey( currentTable.getSchema(), currentTable.getCatalog(), currentTable.getName() );
6
			TableDescription description = (TableDescription) tableNameBinding.get(key);
6
			description = (TableDescription) tableNameBinding.get(key);
7
			if (description != null) currentTable = description.denormalizedSupertable;
7
			if (description != null) currentTable = description.denormalizedSupertable;
8
		
8
		
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