reduce dependence on CTComment

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1836723 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2018-07-26 12:30:32 +00:00
parent 7675466c07
commit e682cc52e3
1 changed files with 3 additions and 4 deletions

View File

@ -166,11 +166,10 @@ public class XSSFSheetXMLHandler extends DefaultHandler {
private void init(CommentsTable commentsTable) {
if (commentsTable != null) {
commentCellRefs = new LinkedList<>();
//noinspection deprecation
for (CTComment comment : commentsTable.getCTComments().getCommentList().getCommentArray()) {
commentCellRefs.add(new CellAddress(comment.getRef()));
for (CellAddress cellAddress : commentsTable.getCellComments().keySet()) {
commentCellRefs.add(cellAddress);
}
}
}
}
private boolean isTextTag(String name) {