Bug 54891 - Description for org.apache.poi.ss.usermodel.Row#createCell(int column, int type) is incorrect
Summary: Description for org.apache.poi.ss.usermodel.Row#createCell(int column, int ty...
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.9-FINAL
Hardware: PC All
: P2 trivial (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-25 08:54 UTC by Betlista+poi
Modified: 2013-05-06 16:53 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Betlista+poi 2013-04-25 08:54:24 UTC
JavaDoc reads:

"The cell that is returned is a {@link Cell#CELL_TYPE_BLANK}. The type can be changed either through calling setCellValue or setCellType."

But that is probably incorrect - why should I specify type if type for returned Cell is Cell#CELL_TYPE_BLANK?

In all HSSFRow, SXSSFRow and XSSFRow implementations the implementation is correct (it sets the type), so please fix the JavaDoc.
Comment 1 Nick Burch 2013-05-06 16:53:13 UTC
Good spot, fixed in r1479639.