_columnName = columnName; _columnType = columnType; _columnSize = columnSize; _decimalDigits = decimalDigits; _nullable = nullable; String decimalDigitsString = 0 == _decimalDigits ? "" : "," + _decimalDigits; _toString = _columnName + " " + _columnType + "(" + _columnSize + decimalDigitsString + ") " + (_nullable? "NULL": "NOT NULL");
_columnName = columnName; _columnType = columnType; _columnSize = columnSize; _decimalDigits = decimalDigits; _nullable = nullable; String decimalDigitsString = 0 == _decimalDigits? "": "," + _decimalDigits; _toString = _columnName + " " + _columnType + "(" + _columnSize + decimalDigitsString + ") " + (_nullable? "NULL": "NOT NULL");
Clone fragments detected by clone detection tool
File path: /sql12/plugins/codecompletion/src/net/sourceforge/squirrel_sql/plugins/codecompletion/CodeCompletionColumnInfo.java File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/ColumnInfo.java
Method name: void CodeCompletionColumnInfo(String, String, int, int, boolean) Method name: void ColumnInfo(String, String, int, int, boolean)
Number of AST nodes: 7 Number of AST nodes: 7
1
_columnName = columnName;
1
_columnName = columnName;
2
      _columnType = columnType;
2
      _columnType = columnType;
3
      _columnSize = columnSize;
3
      _columnSize = columnSize;
4
      _decimalDigits = decimalDigits;
4
      _decimalDigits = decimalDigits;
5
      _nullable = nullable;
5
      _nullable = nullable;
6
      String decimalDigitsString = 0 == _decimalDigits ? "" : "," + _decimalDigits;
6
      String decimalDigitsString = 0 == _decimalDigits? "": "," + _decimalDigits;
7
      _toString = _columnName + "  " + _columnType + "(" + _columnSize + decimalDigitsString + ") " + (_nullable? "NULL": "NOT NULL");
7
      _toString = _columnName + "  " + _columnType + "(" + _columnSize + decimalDigitsString + ") " + (_nullable? "NULL": "NOT NULL");
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 comparisons18
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    1
    _columnName = columnName;
    1
    _columnName = columnName;
    2
    _columnType = columnType;
    2
    _columnType = columnType;
    3
    _columnSize = columnSize;
    3
    _columnSize = columnSize;
    4
    _decimalDigits = decimalDigits;
    4
    _decimalDigits = decimalDigits;
    5
    _nullable = nullable;
    5
    _nullable = nullable;
    6
    String decimalDigitsString = 0 == _decimalDigits ? "" : "," + _decimalDigits;
    6
    String decimalDigitsString = 0 == _decimalDigits ? "" : "," + _decimalDigits;
    7
    _toString = _columnName + "  " + _columnType + "(" + _columnSize + decimalDigitsString + ") " + (_nullable ? "NULL" : "NOT NULL");
    7
    _toString = _columnName + "  " + _columnType + "(" + _columnSize + decimalDigitsString + ") " + (_nullable ? "NULL" : "NOT NULL");
    Precondition Violations (1)
    Row Violation
    1The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.codecompletion.CodeCompletionColumnInfo and net.sourceforge.squirrel_sql.plugins.graph.ColumnInfo do not have a common superclass