this.name = name; this.owner = owner; this.description = description;
this.jdbcType = jdbcType; this.jdbcTypeName = jdbcTypeName; this.setGroup(group);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerGrantDbObject.java File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/STDataType.java
Method name: void FirebirdManagerGrantDbObject(String, String, String) Method name: void STDataType(int, String, int)
Number of AST nodes: 3 Number of AST nodes: 3
1
this.name = name;
1
this.
2
		this.owner = owner;
3
		this.description = description
2
jdbcType = jdbcType;
3
		this.jdbcTypeName = jdbcTypeName;
4
;
4
		this.setGroup(group);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons8
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                        
    1
    this.jdbcType = jdbcType;
    Preondition Violations
    Unmatched statement this.jdbcType=jdbcType; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    1
    this.jdbcType = jdbcType;
    1
    this.name = name;
    1
    this.name = name;
    Preondition Violations
    Unmatched statement this.name=name; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                        
    2
    this.owner = owner;
    2
    this.owner = owner;
    2
    this.jdbcTypeName = jdbcTypeName;
    Differences
    Expression1Expression2Difference
    ownerjdbcTypeNameVARIABLE_NAME_MISMATCH
    ownerjdbcTypeNameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.owner is a field being modified, and thus it cannot be parameterized
    Expression this.jdbcTypeName is a field being modified, and thus it cannot be parameterized
    2
    this.jdbcTypeName = jdbcTypeName;
                                                    
    3
    this.setGroup(group);
    Preondition Violations
    Unmatched statement this.setGroup(group); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    this.setGroup(group);
    3
    this.description = description;
    3
    this.description = description;
    Preondition Violations
    Unmatched statement this.description=description; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                    
    Precondition Violations (6)
    Row Violation
    1Unmatched statement this.jdbcType=jdbcType; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement this.name=name; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Expression this.owner is a field being modified, and thus it cannot be parameterized
    4Expression this.jdbcTypeName is a field being modified, and thus it cannot be parameterized
    5Unmatched statement this.setGroup(group); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6Unmatched statement this.description=description; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted