poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1763965 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java
Date Sun, 09 Oct 2016 12:15:39 GMT
Author: onealj
Date: Sun Oct  9 12:15:39 2016
New Revision: 1763965

URL: http://svn.apache.org/viewvc?rev=1763965&view=rev
Log:
fix findbugs warning BC_VACUOUS_INSTANCEOF from bug 55075

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java?rev=1763965&r1=1763964&r2=1763965&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java Sun Oct  9 12:15:39
2016
@@ -98,7 +98,7 @@ public final class SXSSFPicture implemen
      */
     @Override
     public void resize(double scale){
-        XSSFClientAnchor anchor = getAnchor();
+        XSSFClientAnchor anchor = getClientAnchor();
 
         XSSFClientAnchor pref = getPreferredSize(scale);
 
@@ -131,7 +131,7 @@ public final class SXSSFPicture implemen
      * @return XSSFClientAnchor with the preferred size for this image
      */
     public XSSFClientAnchor getPreferredSize(double scale){
-        XSSFClientAnchor anchor = getAnchor();
+        XSSFClientAnchor anchor = getClientAnchor();
 
         XSSFPictureData data = getPictureData();
         Dimension size = getImageDimension(data.getPackagePart(), data.getPictureType());
@@ -236,8 +236,8 @@ public final class SXSSFPicture implemen
         return (XSSFSheet)_picture.getDrawing().getParent();
     }
 
-    private XSSFClientAnchor getAnchor() {
-        return (XSSFClientAnchor)_picture.getAnchor();
+    private XSSFAnchor getAnchor() {
+        return _picture.getAnchor();
     }
 
     @Override



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message