mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-02 11:49:07 +08:00
fix code
This commit is contained in:
parent
6b3f5c4397
commit
8ccdf408f9
@ -570,8 +570,8 @@ public class FileUtil extends PathUtil {
|
|||||||
if (bufferSize < 1) {
|
if (bufferSize < 1) {
|
||||||
bufferSize = 1024;
|
bufferSize = 1024;
|
||||||
}
|
}
|
||||||
try (InputStream is = getInputStream(file)) {
|
try (final InputStream is = getInputStream(file)) {
|
||||||
byte[] c = new byte[bufferSize];
|
final byte[] c = new byte[bufferSize];
|
||||||
int readChars = is.read(c);
|
int readChars = is.read(c);
|
||||||
if (readChars == -1) {
|
if (readChars == -1) {
|
||||||
// 空文件,返回0
|
// 空文件,返回0
|
||||||
@ -603,7 +603,7 @@ public class FileUtil extends PathUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
} catch (IOException e) {
|
} catch (final IOException e) {
|
||||||
throw new IORuntimeException(e);
|
throw new IORuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user