https://bz.apache.org/bugzilla/show_bug.cgi?id=63118
Bug ID: 63118
Summary: proposal: make Cell.setSellType(CellType.FORMULA)
illegal
Product: POI
Version: 4.0.x-dev
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: SS Common
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Motivation: as well as any setCellType call doesn't make much sense and implies
implicit conversions/default value setting, calling
setCellType(CellType.FORMULA) makes even less sense because formula has no
default value and cannot be null. Setting formula to "0" is a workaround and,
again, is an implicit (i.e. counter-intuitive) side effect.
In all the test suite, I didn't find any reasonable usage of this call. There
were a bunch of calls in test SetUp methods (obviously, redundant) and a call
in XSSFCell ctor. *Perhaps* it wins a tiny bit in terms of performance,
although I very much doubt it.
I have the change ready and tested but am open to obections/discussion. The
change is documented in Cell interface.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]