mirror of https://github.com/apache/poi.git
fox compiler warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144924 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
851d4f416c
commit
7e4be8f2ba
|
@ -34,19 +34,19 @@ public final class HWPFOutputStream extends ByteArrayOutputStream
|
|||
return _offset;
|
||||
}
|
||||
|
||||
public void reset()
|
||||
public synchronized void reset()
|
||||
{
|
||||
super.reset();
|
||||
_offset = 0;
|
||||
}
|
||||
|
||||
public void write(byte[] buf, int off, int len)
|
||||
public synchronized void write(byte[] buf, int off, int len)
|
||||
{
|
||||
super.write(buf, off, len);
|
||||
_offset += len;
|
||||
}
|
||||
|
||||
public void write(int b)
|
||||
public synchronized void write(int b)
|
||||
{
|
||||
super.write(b);
|
||||
_offset++;
|
||||
|
|
Loading…
Reference in New Issue