Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.966 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 416 | E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java |
2 | 7 | 418 | E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java |
| |||||
/* * DataBase-related functions */ /** * On input from the DB, read the data from the ResultSet into the appropriate * type of object to be stored in the table cell. */ public Object readResultSet(ResultSet rs, int index, boolean limitDataRead) throws java.sql.SQLException { double data = rs.getDouble(index); if (rs.wasNull()) return null; else return new Double(data); } |
| |||||
/* * DataBase-related functions */ /** * On input from the DB, read the data from the ResultSet into the appropriate * type of object to be stored in the table cell. */ public Object readResultSet(ResultSet rs, int index, boolean limitDataRead) throws java.sql.SQLException { float data = rs.getFloat(index); if (rs.wasNull()) return null; else return new Float(data); } |
| |||
/* * DataBase-related functions */ /** * On input from the DB, read the data from the ResultSet into the appropriate * type of object to be stored in the table cell. */ public Object readResultSet(ResultSet rs, int index, boolean limitDataRead) throws java.sql.SQLException { [[#variable1cd00b60]] data = rs. [[#variable1cd00ae0]](index); if (rs.wasNull()) return null; else return new [[#variable1cd00a80]](data); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1cd00b60]] | double |
1 | 2 | [[#1cd00b60]] | float |
2 | 1 | [[#1cd00ae0]] | getDouble |
2 | 2 | [[#1cd00ae0]] | getFloat |
3 | 1 | [[#1cd00a80]] | Double |
3 | 2 | [[#1cd00a80]] | Float |