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:
parent
ba4c6093f6
commit
afd75ffaa3
@ -166,11 +166,10 @@ public class XSSFSheetXMLHandler extends DefaultHandler {
|
|||||||
private void init(CommentsTable commentsTable) {
|
private void init(CommentsTable commentsTable) {
|
||||||
if (commentsTable != null) {
|
if (commentsTable != null) {
|
||||||
commentCellRefs = new LinkedList<>();
|
commentCellRefs = new LinkedList<>();
|
||||||
//noinspection deprecation
|
for (CellAddress cellAddress : commentsTable.getCellComments().keySet()) {
|
||||||
for (CTComment comment : commentsTable.getCTComments().getCommentList().getCommentArray()) {
|
commentCellRefs.add(cellAddress);
|
||||||
commentCellRefs.add(new CellAddress(comment.getRef()));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isTextTag(String name) {
|
private boolean isTextTag(String name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user