From: Hiroshi Miura Date: Sun, 16 Oct 2016 02:21:17 +0000 (+0900) Subject: Fix checkstyle warning X-Git-Tag: v0.10.0~86 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=273c889e402e1e3a5560794ce50061736f1fc0ad;p=dictzip-java%2Fdictzip-java.git Fix checkstyle warning Signed-off-by: Hiroshi Miura --- diff --git a/dictzip-lib/src/main/java/org/dict/zip/DictZipInputStream.java b/dictzip-lib/src/main/java/org/dict/zip/DictZipInputStream.java index c0cfe37..a0a142c 100644 --- a/dictzip-lib/src/main/java/org/dict/zip/DictZipInputStream.java +++ b/dictzip-lib/src/main/java/org/dict/zip/DictZipInputStream.java @@ -62,11 +62,11 @@ public class DictZipInputStream extends InflaterInputStream { /* * Super class has three protected variables. - * protected byte[] buf + * protected byte[] buf * Input buffer for decompression. - * protected Inflater inf + * protected Inflater inf * Decompressor for this stream. - * protected int len + * protected int len * Length of input buffer. * * We should not use these names in order to avoid confusion. @@ -145,14 +145,14 @@ public class DictZipInputStream extends InflaterInputStream { int total; int len; byte[] b = new byte[512]; - for(total = 0; total < offset; total += len) { + for (total = 0; total < offset; total += len) { len = offset - total; - if(len > b.length) { + if (len > b.length) { len = b.length; } len = super.read(b, 0, len); - if(len == -1) { + if (len == -1) { eos = true; return -1; }