You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library is very nice in that it provides an easy drop-in replacement for simple uses of the vanilla POI API. One important part of this ease-of-use is that unimplemented features are reported very obviously at runtime via e.g. NotSupportedExceptions. If you try this library with your existing code and you don't get any exceptions at runtime, you're probably OK.
Unfortunately, StreamingCell.getBooleanCellValue() breaks this convention and assumption by not being implemented, but rather than throwing an exception it simply returns false. If users are not very, very careful, this could encourage them to start using this library when in fact it doesn't implement functionality that they need.
I don't know if StreamingCell.getBooleanCellValue() can be implemented or not; if it can, then it would be great to see it implemented; if it can't be implemented, then throwing a NotSupportedException would be more appropriate than just returning false.
Good catch! I was actually just in the middle of reviewing #50 when you opened this issue. I just merged it, so the next release will support getBooleanCellValue()
This library is very nice in that it provides an easy drop-in replacement for simple uses of the vanilla POI API. One important part of this ease-of-use is that unimplemented features are reported very obviously at runtime via e.g.
NotSupportedException
s. If you try this library with your existing code and you don't get any exceptions at runtime, you're probably OK.Unfortunately,
StreamingCell.getBooleanCellValue()
breaks this convention and assumption by not being implemented, but rather than throwing an exception it simply returnsfalse
. If users are not very, very careful, this could encourage them to start using this library when in fact it doesn't implement functionality that they need.I don't know if
StreamingCell.getBooleanCellValue()
can be implemented or not; if it can, then it would be great to see it implemented; if it can't be implemented, then throwing aNotSupportedException
would be more appropriate than just returningfalse
.https://github.com/monitorjbl/excel-streaming-reader/blob/master/src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java#L305
The text was updated successfully, but these errors were encountered: