aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-02-13 23:33:24 +0000
committerPJ Fanning <fanningpj@apache.org>2021-02-13 23:33:24 +0000
commite47a48283b99df845182c8e98063803ff5003fcf (patch)
treecd107d68bf52e2d285879bca2696a0d795b1b50d
parent49fe3ba330a62259f6eadc398ae31265c474d1ef (diff)
downloadpoi-e47a48283b99df845182c8e98063803ff5003fcf.tar.gz
poi-e47a48283b99df845182c8e98063803ff5003fcf.zip
small refactor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886495 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
index cdc404b028..b4ed883854 100644
--- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
+++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
@@ -793,18 +793,14 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet {
return null;
}
- final int row = address.getRow();
- final int column = address.getColumn();
-
- CellAddress ref = new CellAddress(row, column);
- CTComment ctComment = sheetComments.getCTComment(ref);
+ CTComment ctComment = sheetComments.getCTComment(address);
if(ctComment == null) {
return null;
}
XSSFVMLDrawing vml = getVMLDrawing(false);
return new XSSFComment(sheetComments, ctComment,
- vml == null ? null : vml.findCommentShape(row, column));
+ vml == null ? null : vml.findCommentShape(address.getRow(), address.getColumn()));
}
/**