super(); this.indexName = indexName; this.tableName = tableName; this.accessMethod = accessMethod; this.columns = columns; this.unique = unique; this.tablespace = tablespace; this.constraints = constraints;
super(); this.sequenceName = sequenceName; this.increment = increment; this.minimum = minimum; this.maximum = maximum; this.start = start; this.cache = cache; this.cycle = cycle;
Clone fragments detected by clone detection tool
File path: /sql12/test/external/net/sourceforge/squirrel_sql/fw/dialects/DialectExternalTest.java File path: /sql12/test/external/net/sourceforge/squirrel_sql/fw/dialects/DialectExternalTest.java
Method name: void CreateIndexSqlExtractor(String, String, String, String[], boolean, String, String) Method name: void CreateSequenceSqlExtractor(String, String, String, String, String, String, boolean)
Number of AST nodes: 8 Number of AST nodes: 8
1
super();
1
super();
2
			this.indexName = indexName;
2
			this.
3
			this.tableName = tableName;
4
			this.accessMethod = accessMethod;
5
			this.columns = columns;
6
			this.unique = unique
3
sequenceName = sequenceName;
4
			this.increment = increment;
5
			this.minimum = minimum;
6
			this.maximum = maximum;
7
;
7
			this.start = start;
8
			this.tablespace = tablespace;
8
			this.cache = cache;
9
			this.constraints = constraints;
9
			this.cycle = cycle;
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 the same java file
Number of node comparisons31
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super();
    1
    super();
    1
    super();
    Preondition Violations
    Super constructor call super(); cannot be extracted from constructor
    Super constructor call super(); cannot be extracted from constructor
    1
    super();
    2
    this.indexName = indexName;
    2
    this.indexName = indexName;
    2
    this.sequenceName = sequenceName;
    Differences
    Expression1Expression2Difference
    indexNamesequenceNameVARIABLE_NAME_MISMATCH
    indexNamesequenceNameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.indexName is a field being modified, and thus it cannot be parameterized
    Expression this.sequenceName is a field being modified, and thus it cannot be parameterized
    2
    this.sequenceName = sequenceName;
    3
    this.tableName = tableName;
    3
    this.tableName = tableName;
    3
    this.increment = increment;
    Differences
    Expression1Expression2Difference
    tableNameincrementVARIABLE_NAME_MISMATCH
    tableNameincrementVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.tableName is a field being modified, and thus it cannot be parameterized
    Expression this.increment is a field being modified, and thus it cannot be parameterized
    3
    this.increment = increment;
    4
    this.accessMethod = accessMethod;
    4
    this.accessMethod = accessMethod;
    4
    this.minimum = minimum;
    Differences
    Expression1Expression2Difference
    accessMethodminimumVARIABLE_NAME_MISMATCH
    accessMethodminimumVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.accessMethod is a field being modified, and thus it cannot be parameterized
    Expression this.minimum is a field being modified, and thus it cannot be parameterized
    4
    this.minimum = minimum;
                                                    
    5
    this.maximum = maximum;
    Preondition Violations
    Unmatched statement this.maximum=maximum; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5
    this.maximum = maximum;
    5
    this.columns = columns;
    5
    this.columns = columns;
    Preondition Violations
    Unmatched statement this.columns=columns; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                    
    6
    this.unique = unique;
    6
    this.unique = unique;
    8
    this.cycle = cycle;
    Differences
    Expression1Expression2Difference
    uniquecycleVARIABLE_NAME_MISMATCH
    uniquecycleVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.unique is a field being modified, and thus it cannot be parameterized
    Expression this.cycle is a field being modified, and thus it cannot be parameterized
    8
    this.cycle = cycle;
    7
    this.tablespace = tablespace;
    7
    this.tablespace = tablespace;
    7
    this.cache = cache;
    Differences
    Expression1Expression2Difference
    tablespacecacheVARIABLE_NAME_MISMATCH
    tablespacecacheVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.tablespace is a field being modified, and thus it cannot be parameterized
    Expression this.cache is a field being modified, and thus it cannot be parameterized
    7
    this.cache = cache;
    8
    this.constraints = constraints;
    8
    this.constraints = constraints;
    6
    this.start = start;
    Differences
    Expression1Expression2Difference
    constraintsstartVARIABLE_NAME_MISMATCH
    constraintsstartVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.constraints is a field being modified, and thus it cannot be parameterized
    Expression this.start is a field being modified, and thus it cannot be parameterized
    6
    this.start = start;
    Precondition Violations (16)
    Row Violation
    1Super constructor call super(); cannot be extracted from constructor
    2Super constructor call super(); cannot be extracted from constructor
    3Expression this.indexName is a field being modified, and thus it cannot be parameterized
    4Expression this.sequenceName is a field being modified, and thus it cannot be parameterized
    5Expression this.tableName is a field being modified, and thus it cannot be parameterized
    6Expression this.increment is a field being modified, and thus it cannot be parameterized
    7Expression this.accessMethod is a field being modified, and thus it cannot be parameterized
    8Expression this.minimum is a field being modified, and thus it cannot be parameterized
    9Unmatched statement this.maximum=maximum; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    10Unmatched statement this.columns=columns; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    11Expression this.unique is a field being modified, and thus it cannot be parameterized
    12Expression this.cycle is a field being modified, and thus it cannot be parameterized
    13Expression this.tablespace is a field being modified, and thus it cannot be parameterized
    14Expression this.cache is a field being modified, and thus it cannot be parameterized
    15Expression this.constraints is a field being modified, and thus it cannot be parameterized
    16Expression this.start is a field being modified, and thus it cannot be parameterized