Author: fanningpj
Date: Sat Feb 13 23:33:24 2021
New Revision: 1886495

URL: http://svn.apache.org/viewvc?rev=1886495&view=rev
Log:
small refactor

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java?rev=1886495&r1=1886494&r2=1886495&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java 
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java Sat 
Feb 13 23:33:24 2021
@@ -793,18 +793,14 @@ public class XSSFSheet extends POIXMLDoc
             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()));
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to