git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753124 13f79535-47bb-0310-9956-ffa450edef68tags/REL_3_15_BETA3
@@ -84,8 +84,6 @@ public class HwmfBitmap16 { | |||
} | |||
public BufferedImage getImage() { | |||
BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR); | |||
return bi; | |||
return new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR); | |||
} | |||
} |
@@ -43,8 +43,7 @@ public class HwmfColorRef implements Cloneable { | |||
int red = leis.readUByte(); | |||
int green = leis.readUByte(); | |||
int blue = leis.readUByte(); | |||
@SuppressWarnings("unused") | |||
int reserved = leis.readUByte(); | |||
/*int reserved =*/ leis.readUByte(); | |||
colorRef = new Color(red, green, blue); | |||
return 4*LittleEndianConsts.BYTE_SIZE; |
@@ -482,8 +482,7 @@ public class HwmfFill { | |||
xSrc = leis.readShort(); | |||
size = 6*LittleEndianConsts.SHORT_SIZE; | |||
if (!hasBitmap) { | |||
@SuppressWarnings("unused") | |||
int reserved = leis.readShort(); | |||
/*int reserved =*/ leis.readShort(); | |||
size += LittleEndianConsts.SHORT_SIZE; | |||
} | |||
destHeight = leis.readShort(); | |||
@@ -685,8 +684,7 @@ public class HwmfFill { | |||
size = 4*LittleEndianConsts.SHORT_SIZE; | |||
if (!hasBitmap) { | |||
@SuppressWarnings("unused") | |||
int reserved = leis.readShort(); | |||
/*int reserved =*/ leis.readShort(); | |||
size += LittleEndianConsts.SHORT_SIZE; | |||
} | |||
@@ -872,8 +870,7 @@ public class HwmfFill { | |||
xSrc = leis.readShort(); | |||
size = 4*LittleEndianConsts.SHORT_SIZE; | |||
if (!hasBitmap) { | |||
@SuppressWarnings("unused") | |||
int reserved = leis.readShort(); | |||
/*int reserved =*/ leis.readShort(); | |||
size += LittleEndianConsts.SHORT_SIZE; | |||
} | |||
height = leis.readShort(); | |||
@@ -979,8 +976,7 @@ public class HwmfFill { | |||
xSrc = leis.readShort(); | |||
size = 6*LittleEndianConsts.SHORT_SIZE; | |||
if (!hasBitmap) { | |||
@SuppressWarnings("unused") | |||
int reserved = leis.readShort(); | |||
/*int reserved =*/ leis.readShort(); | |||
size += LittleEndianConsts.SHORT_SIZE; | |||
} | |||
destHeight = leis.readShort(); |
@@ -184,12 +184,11 @@ public class HwmfMisc { | |||
return HwmfRecordType.setLayout; | |||
} | |||
@SuppressWarnings("unused") | |||
@Override | |||
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws IOException { | |||
layout = leis.readUShort(); | |||
// A 16-bit field that MUST be ignored. | |||
int reserved = leis.readShort(); | |||
/*int reserved =*/ leis.readShort(); | |||
return 2*LittleEndianConsts.SHORT_SIZE; | |||
} | |||