buf.append(dataType); buf.append("("); buf.append(dataPrec); buf.append(")");
buf.append(dataType); buf.append("("); buf.append(dataLength); buf.append(")");
Clone fragments detected by clone detection tool
File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/util/MssqlIntrospector.java File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/util/MssqlIntrospector.java
Method name: String formatDataType(String, short, int, int) Method name: String formatDataType(String, short, int, int)
Number of AST nodes: 4 Number of AST nodes: 4
1
buf.append(dataType);
1
buf.append(dataType);
2
			buf.append("(");
2
			buf.append("(");
3
			buf.append(dataPrec);
3
			buf.append(dataLength);
4
			buf.append(")");
4
			buf.append(")");
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 method
Number of node comparisons16
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    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 2
    Mapped Statements
    ID Statement ID Statement
    8
    buf.append(dataType);
    3
    buf.append(dataType);
    9
    buf.append("(");
    4
    buf.append("(");
    10
    buf.append(dataPrec);
    10
    buf.append(dataPrec);
    5
    buf.append(dataLength);
    Differences
    Expression1Expression2Difference
    dataPrecdataLengthVARIABLE_NAME_MISMATCH
    intshortVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type int of variable dataPrec does not match with type short of variable dataLength
    5
    buf.append(dataLength);
    11
    buf.append(")");
    6
    buf.append(")");
    Precondition Violations (1)
    Row Violation
    1Type int of variable dataPrec does not match with type short of variable dataLength