if ( name.charAt( 0 ) == '`' ) { quoted = true; this.name = name.substring( 1, name.length() - 1 ); } else { this.name = name; }
if ( schema != null && schema.charAt( 0 ) == '`' ) { schemaQuoted = true; this.schema = schema.substring( 1, schema.length() - 1 ); } else { this.schema = schema; }
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/core/src/main/java/org/hibernate/mapping/Table.java
Method name: void setName(String) Method name: void setSchema(String)
Number of AST nodes: 4 Number of AST nodes: 4
1
if ( name.charAt( 0 ) == '`' ) {
1
if ( schema != null && schema.charAt( 0 ) == '`' ) {
2
			quoted = true;
2
			schemaQuoted = true;
3
			this.name = name.substring( 1, name.length() - 1 );
3
			this.schema = schema.substring( 1, schema.length() - 1 );
4
		}
4
		}
5
		else {
5
		else {
6
			this.name = name;
6
			this.schema = schema;
7
		}
7
		}
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.1
Clones locationClones are declared in the same class
Number of node comparisons1