From: Javen O'Neal Date: Tue, 24 Nov 2015 08:54:32 +0000 (+0000) Subject: bug 58637: replace deprecated getCellComment(row, col) usage X-Git-Tag: REL_3_14_BETA1~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0581f4b7d530bbbfcb48cd1c6a598e891d0435a6;p=poi.git bug 58637: replace deprecated getCellComment(row, col) usage git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716075 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java index 23ec7f7c59..040ccc7eed 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java @@ -1003,7 +1003,7 @@ public final class XSSFCell implements Cell { */ @Override public XSSFComment getCellComment() { - return getSheet().getCellComment(_row.getRowNum(), getColumnIndex()); + return getSheet().getCellComment(new CellAddress(this)); } /**