The method protected CellValueRecordInterface getCellValueRecord() { return record; } in HSSFCell is declared 'protected'. To implement a formula calculator I need access to the record from other packages. Couldn't the method be declared as 'public'. HSSFCell.getCellFormula() is too ineficient.
No it shouldn't be public. I would say the formula evalutor should work exactly the opposite way. It should be independant of the underlying model. Making that public would break our encapsulation and clear seperation between the low level model and high level.
Now you're talking.
should not be made public