if ( propFile != null ) { Properties props = new Properties(); props.putAll( cfg.getProperties() ); props.load( new FileInputStream( propFile ) ); cfg.setProperties( props ); }
if ( propFile != null ) { Properties props = new Properties(); props.putAll( cfg.getProperties() ); props.load( new FileInputStream( propFile ) ); cfg.setProperties( props ); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaValidator.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaUpdate.java
Method name: void main(String[]) Method name: void main(String[])
Number of AST nodes: 5 Number of AST nodes: 5
1
if ( propFile != null ) {
1
if ( propFile != null ) {
2
				Properties props = new Properties();
2
				Properties props = new Properties();
3
				props.putAll( cfg.getProperties() );
3
				props.putAll( cfg.getProperties() );
4
				props.load( new FileInputStream( propFile ) );
4
				props.load( new FileInputStream( propFile ) );
5
				cfg.setProperties( props );
5
				cfg.setProperties( props );
6
			}
6
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in different classes
Number of node comparisons27
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.2
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    13
    if (propFile != null)
    19
    if (propFile != null)
    14
    Properties props = new Properties();
    20
    Properties props = new Properties();
    15
    props.putAll(cfg.getProperties());
    21
    props.putAll(cfg.getProperties());
    16
    props.load(new FileInputStream(propFile));
    22
    props.load(new FileInputStream(propFile));
    17
    cfg.setProperties(props);
    23
    cfg.setProperties(props);
    Precondition Violations (0)
    Row Violation