OSDN Git Service

adjust Checkstyle warnings
authorHiroshi Miura <miurahr@linux.com>
Fri, 4 Feb 2022 15:11:14 +0000 (00:11 +0900)
committerHiroshi Miura <miurahr@linux.com>
Fri, 4 Feb 2022 15:11:14 +0000 (00:11 +0900)
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
dictzip-lib/src/main/java/org/dict/zip/RandomAccessInputStream.java
dictzip-lib/src/main/java/org/dict/zip/RandomAccessOutputStream.java

index b653512..36f5540 100644 (file)
@@ -100,6 +100,9 @@ public class RandomAccessInputStream extends InputStream {
         return (int) position();
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public final synchronized void mark(final int markpos) {
         try {
@@ -109,16 +112,25 @@ public class RandomAccessInputStream extends InputStream {
         }
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public final boolean markSupported() {
         return true;
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public final synchronized int read() throws IOException {
         return in.read();
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public final int read(final byte[] buf, final int off, final int len) throws IOException {
         return in.read(buf, off, len);
@@ -134,6 +146,9 @@ public class RandomAccessInputStream extends InputStream {
         in.readFully(buf);
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public final synchronized void reset() throws IOException {
         in.seek(mark);
@@ -149,8 +164,11 @@ public class RandomAccessInputStream extends InputStream {
         in.seek(pos);
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public final long skip(final long size) throws IOException {
-        return (long) in.skipBytes((int) size);
+        return in.skipBytes((int) size);
     }
 }
index 6f9399c..16b6762 100644 (file)
@@ -92,7 +92,7 @@ public class RandomAccessOutputStream extends OutputStream {
     }
 
     /**
-     * Get file position;
+     * Get file position.
      * @return position
      * @throws IOException if on I/O error occurred
      */