]> source.dussan.org Git - poi.git/commitdiff
fox compiler warnings
authorSergey Vladimirov <sergey@apache.org>
Sun, 10 Jul 2011 18:05:11 +0000 (18:05 +0000)
committerSergey Vladimirov <sergey@apache.org>
Sun, 10 Jul 2011 18:05:11 +0000 (18:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144924 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/model/io/HWPFOutputStream.java

index 537576ff998051080074b62708d2fc6c1254c95c..b95f4b620ffde497b3e310a128dc7a12bde47d93 100644 (file)
@@ -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++;