CloneSet645


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20210.983method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119392
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/CellComponentFactory.java
220491
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/CellComponentFactory.java
Next
Last
Clone Instance
1
Line Count
19
Source Line
392
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/CellComponentFactory.java

/**
 * Call the validate and convert method in the appropriate
 * DataType object.
 */
public static Object validateAndConvert(ColumnDisplayDefinition colDef, Object originalValue, String inputValue, StringBuffer messageBuffer) {
  IDataTypeComponent dataTypeObject = getDataTypeObject(null, colDef);
  if (dataTypeObject != null) {
    // we have an appropriate data type object
    return dataTypeObject.validateAndConvert(inputValue, originalValue, messageBuffer);
  }
  // No appropriate DataType for this column, so do the best
  // we can with what we know.
  //
  // THIS MAY NOT BE THE BEST BEHAVIOR HERE!!!!!!!
  // Default Operation
  if (inputValue.equals("<null>"))
    return null;
  else
    return inputValue;
}


First
Previous
Clone Instance
2
Line Count
20
Source Line
491
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/CellComponentFactory.java

/**
 * Call the validate and convert method in the appropriate
 * DataType object.
 */
public static Object validateAndConvertInPopup(ColumnDisplayDefinition colDef, Object originalValue, String inputValue, StringBuffer messageBuffer) {
  IDataTypeComponent dataTypeObject = getDataTypeObject(null, colDef);
  if (dataTypeObject != null) {
    // we have an appropriate data type object
    return dataTypeObject.validateAndConvertInPopup(inputValue, originalValue, messageBuffer);
  }
  // No appropriate DataType for this column, so do the best
  // we can with what we know.
  //
  // THIS MAY NOT BE THE BEST BEHAVIOR HERE!!!!!!!
  // Default Operation
  if (inputValue.equals("<null>"))
    return null;
  else
    return inputValue;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Call the validate and convert method in the appropriate
         * DataType object.
         */
public static Object  [[#variable1cc34720]](ColumnDisplayDefinition colDef, Object originalValue, String inputValue, StringBuffer messageBuffer) {
  IDataTypeComponent dataTypeObject = getDataTypeObject(null, colDef);
  if (dataTypeObject != null) {
    // we have an appropriate data type object
    return dataTypeObject. [[#variable1cc34720]](inputValue, originalValue, messageBuffer);
  }
  // No appropriate DataType for this column, so do the best
  // we can with what we know.
  //
  // THIS MAY NOT BE THE BEST BEHAVIOR HERE!!!!!!!
  // Default Operation
  if (inputValue.equals("<null>"))
    return null;
  else
    return inputValue;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1cc34720]]
validateAndConvert 
12[[#1cc34720]]
validateAndConvertInPopup