public Integer getInt(int column) throws IOException, UnsupportedFormatException {
checkPointer();
Cell cell = sheet.getCell(column, pointer);
if (cell.getType() != CellType.NUMBER) {
throw new UnsupportedFormatException();
}
return (new Double(((NumberCell) cell).getValue())).intValue();
public Long getLong(int column) throws IOException, UnsupportedFormatException {
checkPointer();
Cell cell = sheet.getCell(column, pointer);
if (cell.getType() != CellType.NUMBER) {
throw new UnsupportedFormatException();
}
return (new Double(((NumberCell) cell).getValue())).longValue();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/importer/excel/ExcelFileImporter.java
|
|
File path: /sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/importer/excel/ExcelFileImporter.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public Integer getInt(int column) throws IOException, UnsupportedFormatException {↵ | | 1 | public Long getLong(int column) throws IOException, UnsupportedFormatException {↵
|
2 | checkPointer();↵ | | 2 | checkPointer();↵
|
3 | Cell cell = sheet.getCell(column, pointer);↵ | | 3 | Cell cell = sheet.getCell(column, pointer);↵
|
4 | if (cell.getType() != CellType.NUMBER) {↵ | | 4 | if (cell.getType() != CellType.NUMBER) {↵
|
5 | throw new UnsupportedFormatException();↵ | | 5 | throw new UnsupportedFormatException();↵
|
6 | }↵ | | 6 | }↵
|
7 | return (new Double(((NumberCell) cell).getValue())).intValue();↵ | | 7 | return (new Double(((NumberCell) cell).getValue())).longValue();↵
|
8 | | | 8 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |