Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POI 4.1 #189

Merged
merged 3 commits into from
May 7, 2019
Merged

POI 4.1 #189

merged 3 commits into from
May 7, 2019

Conversation

pjfanning
Copy link
Contributor

The new POI code makes it important to have getSheet() implemented on cells. That is the main reason why I refactored a number of classes.

@@ -711,24 +711,24 @@ public void testFormulaWithDifferentTypes() throws Exception {
Row next = rowIterator.next();
Cell cell = next.getCell(0);

assertThat(cell.getCellTypeEnum(), is(CellType.STRING));
assertThat(cell.getCellType(), is(CellType.STRING));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this method call change? I don't see any removal of the original method in StreamingCell. Is getCellType() method preferable for some reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getCellTypeEnum is deprecated - getCellType is the replacement

factory.setXIncludeAware(false);
return factory.newDocumentBuilder().parse(is);
} catch(SAXException | IOException | ParserConfigurationException e) {
return DocumentHelper.readDocument(is);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat! Now we don't have to maintain this, but at least there's still a unit test backstop in case the CVE crops up again for some reason.

@monitorjbl monitorjbl merged commit c742298 into monitorjbl:master May 7, 2019
@pjfanning pjfanning deleted the poi-4.1 branch May 7, 2019 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants