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
This commit is contained in:
Javen O'Neal 2016-10-09 12:15:39 +00:00
parent 370aa27bf2
commit db53120ab3

View File

@ -98,7 +98,7 @@ public final class SXSSFPicture implements Picture {
*/ */
@Override @Override
public void resize(double scale){ public void resize(double scale){
XSSFClientAnchor anchor = getAnchor(); XSSFClientAnchor anchor = getClientAnchor();
XSSFClientAnchor pref = getPreferredSize(scale); XSSFClientAnchor pref = getPreferredSize(scale);
@ -131,7 +131,7 @@ public final class SXSSFPicture implements Picture {
* @return XSSFClientAnchor with the preferred size for this image * @return XSSFClientAnchor with the preferred size for this image
*/ */
public XSSFClientAnchor getPreferredSize(double scale){ public XSSFClientAnchor getPreferredSize(double scale){
XSSFClientAnchor anchor = getAnchor(); XSSFClientAnchor anchor = getClientAnchor();
XSSFPictureData data = getPictureData(); XSSFPictureData data = getPictureData();
Dimension size = getImageDimension(data.getPackagePart(), data.getPictureType()); Dimension size = getImageDimension(data.getPackagePart(), data.getPictureType());
@ -236,8 +236,8 @@ public final class SXSSFPicture implements Picture {
return (XSSFSheet)_picture.getDrawing().getParent(); return (XSSFSheet)_picture.getDrawing().getParent();
} }
private XSSFClientAnchor getAnchor() { private XSSFAnchor getAnchor() {
return (XSSFClientAnchor)_picture.getAnchor(); return _picture.getAnchor();
} }
@Override @Override