nkuprins commented on code in PR #964:
URL: https://github.com/apache/fesod/pull/964#discussion_r3646037205
##########
fesod-sheet/src/main/java/org/apache/fesod/sheet/metadata/data/CellData.java:
##########
@@ -71,6 +76,19 @@ public class CellData<T> extends AbstractCell {
*/
private FormulaData formulaData;
+ /**
+ * Sets {@link #booleanValue} from the raw {@code <v>} text of a boolean
({@code t="b"}) xlsx cell.
+ *
+ * <p>Excel encodes boolean cells using the numeric markers {@code
0}/{@code 1}, so only the exact
+ * string {@code "1"} maps to {@code true}; any other input (including
{@code "true"}) maps to
+ * {@code false}. This mirrors Apache POI's {@code
XSSFCell.getBooleanCellValue()}.
+ *
+ * @param str the raw cell value text
+ */
+ public void setBooleanValueFromString(String str) {
Review Comment:
Good point, agreed. Should I then move `setBooleanValueFromString` (and its
`TRUE_NUMBER` constant) down to `ReadCellData` and commit-push?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]