CloneSet651


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8330.961method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1856
E:/TSE/Projects-CloneDR/sql12/test/mockobjects/net/sourceforge/squirrel_sql/mo/sql/MockResultSetMetaData.java
2876
E:/TSE/Projects-CloneDR/sql12/test/mockobjects/net/sourceforge/squirrel_sql/mo/sql/MockResultSetMetaData.java
3886
E:/TSE/Projects-CloneDR/sql12/test/mockobjects/net/sourceforge/squirrel_sql/mo/sql/MockResultSetMetaData.java
Next
Last
Clone Instance
1
Line Count
8
Source Line
56
Source File
E:/TSE/Projects-CloneDR/sql12/test/mockobjects/net/sourceforge/squirrel_sql/mo/sql/MockResultSetMetaData.java

public int getColumnType(int arg0) throws SQLException {
  // Need to adjust param which is 1-based(JDBC) to a 0-based number for 
  // array access
  int idx = arg0 - 1;
  if (_infos == null || _infos.length <= 0 || idx >= _infos.length) {
    return 0;
  }
  return _infos[idx].getDataType();
}


Next
Previous
Clone Instance
2
Line Count
8
Source Line
76
Source File
E:/TSE/Projects-CloneDR/sql12/test/mockobjects/net/sourceforge/squirrel_sql/mo/sql/MockResultSetMetaData.java

public int getPrecision(int arg0) throws SQLException {
  // Need to adjust param which is 1-based(JDBC) to a 0-based number for 
  // array access
  int idx = arg0 - 1;
  if (_infos == null || _infos.length <= 0 || idx >= _infos.length) {
    return 0;
  }
  return _infos[arg0].getColumnSize();
}


First
Previous
Clone Instance
3
Line Count
8
Source Line
86
Source File
E:/TSE/Projects-CloneDR/sql12/test/mockobjects/net/sourceforge/squirrel_sql/mo/sql/MockResultSetMetaData.java

public int getScale(int arg0) throws SQLException {
  // Need to adjust param which is 1-based(JDBC) to a 0-based number for 
  // array access
  int idx = arg0 - 1;
  if (_infos == null || _infos.length <= 0 || idx >= _infos.length) {
    return 0;
  }
  return _infos[arg0].getDecimalDigits();
}


Clone AbstractionParameter Count: 3Parameter Bindings

public int  [[#variable1cc1e880]](int arg0) throws SQLException {
  // Need to adjust param which is 1-based(JDBC) to a 0-based number for 
  // array access
  int idx = arg0 - 1;
  if (_infos == null || _infos.length <= 0 || idx >= _infos.length) {
    return 0;
  }
  return _infos[ [[#variable1cc1e800]]]. [[#variable1cc1e8c0]]();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1cc1e880]]
getColumnType 
12[[#1cc1e880]]
getPrecision 
13[[#1cc1e880]]
getScale 
21[[#1cc1e800]]
idx 
22[[#1cc1e800]]
arg0 
23[[#1cc1e800]]
arg0 
31[[#1cc1e8c0]]
getDataType 
32[[#1cc1e8c0]]
getColumnSize 
33[[#1cc1e8c0]]
getDecimalDigits