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:
parent
370aa27bf2
commit
db53120ab3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user