if (value == null || value.toString() == null || value.toString().length() == 0) return _colDef.getLabel() + " IS NULL"; else //?? There does not seem to be any standard way to represent //?? binary data in a WHERE clause... return null;
if (value == null || value.toString() == null || value.toString().length() == 0) return _colDef.getLabel() + " IS NULL"; else // since we cannot do exact matches on floating point // numbers, we cannot use this field in the WHERE clause. return "";
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBinary.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java
Method name: String getWhereClauseValue(Object, ISQLDatabaseMetaData) Method name: String getWhereClauseValue(Object, ISQLDatabaseMetaData)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (value == null || value.toString() == null || value.toString().length() == 0)
1
if (value == null || value.toString() == null || value.toString().length() == 0)
2
			return _colDef.getLabel() + " IS NULL";
2
         return _colDef.getLabel() + " IS NULL";
3
		else
4
			//?? There does not seem to be any standard way to represent
5
			//?? binary data
3
      else
4
         // since we cannot do exact matches on floating point
6
 in a WHERE clause...
5
         // numbers, we cannot use this field in the WHERE clause.
7
			
8
return null;
6
         return "";
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.3
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)9.3
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (value == null || value.toString() == null || value.toString().length() == 0)
    1
    if (value == null || value.toString() == null || value.toString().length() == 0)
    2
    return _colDef.getLabel() + " IS NULL";
    2
    return _colDef.getLabel() + " IS NULL";
    else
    else
    3
    return null;
    3
    return null;
    3
    return "";
    Differences
    Expression1Expression2Difference
    null""TYPE_COMPATIBLE_REPLACEMENT
    3
    return "";
    Precondition Violations (0)
    Row Violation