findbugs fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735312 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ac6a01898d
commit
a7c073ada9
@ -76,7 +76,8 @@ public final class EMF extends Metafile {
|
||||
InputStream is = new ByteArrayInputStream( rawdata );
|
||||
Header header = new Header();
|
||||
header.read(rawdata, CHECKSUM_SIZE);
|
||||
is.skip(header.getSize() + CHECKSUM_SIZE);
|
||||
long len = is.skip(header.getSize() + CHECKSUM_SIZE);
|
||||
assert(len == header.getSize() + CHECKSUM_SIZE);
|
||||
|
||||
InflaterInputStream inflater = new InflaterInputStream( is );
|
||||
byte[] chunk = new byte[4096];
|
||||
|
@ -46,7 +46,8 @@ public final class WMF extends Metafile {
|
||||
InputStream is = new ByteArrayInputStream( rawdata );
|
||||
Header header = new Header();
|
||||
header.read(rawdata, CHECKSUM_SIZE*uidInstanceCount);
|
||||
is.skip(header.getSize() + CHECKSUM_SIZE*uidInstanceCount);
|
||||
long len = is.skip(header.getSize() + CHECKSUM_SIZE*uidInstanceCount);
|
||||
assert(len == header.getSize() + CHECKSUM_SIZE*uidInstanceCount);
|
||||
|
||||
NativeHeader aldus = new NativeHeader(header.bounds);
|
||||
aldus.write(out);
|
||||
|
@ -70,7 +70,8 @@ public class HwmfHeader {
|
||||
bytesLeft -= LittleEndianConsts.SHORT_SIZE;
|
||||
|
||||
if (bytesLeft > 0) {
|
||||
leis.skip(bytesLeft);
|
||||
long len = leis.skip(bytesLeft);
|
||||
assert(len == bytesLeft);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user