From: Javen O'Neal Date: Sun, 9 Oct 2016 12:15:39 +0000 (+0000) Subject: fix findbugs warning BC_VACUOUS_INSTANCEOF from bug 55075 X-Git-Tag: REL_3_16_BETA1~118 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fb3e4bf19e04ebf2083ded8604ee3ef844a360e3;p=poi.git fix findbugs warning BC_VACUOUS_INSTANCEOF from bug 55075 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1763965 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java index 13fd4315e1..631d0e356a 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java @@ -98,7 +98,7 @@ public final class SXSSFPicture implements Picture { */ @Override public void resize(double scale){ - XSSFClientAnchor anchor = getAnchor(); + XSSFClientAnchor anchor = getClientAnchor(); XSSFClientAnchor pref = getPreferredSize(scale); @@ -131,7 +131,7 @@ public final class SXSSFPicture implements Picture { * @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 implements Picture { return (XSSFSheet)_picture.getDrawing().getParent(); } - private XSSFClientAnchor getAnchor() { - return (XSSFClientAnchor)_picture.getAnchor(); + private XSSFAnchor getAnchor() { + return _picture.getAnchor(); } @Override