]> source.dussan.org Git - poi.git/commitdiff
bug 58637: replace deprecated getCellComment(row, col) usage
authorJaven O'Neal <onealj@apache.org>
Tue, 24 Nov 2015 08:54:32 +0000 (08:54 +0000)
committerJaven O'Neal <onealj@apache.org>
Tue, 24 Nov 2015 08:54:32 +0000 (08:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716075 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java

index 23ec7f7c59156ee39ec7c37eae82b48d1b41f1af..040ccc7eed9ee169d12120ee08d1903655e3560e 100644 (file)
@@ -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));
     }
 
     /**