mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +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) {
|
||||
bufferSize = 1024;
|
||||
}
|
||||
try (InputStream is = getInputStream(file)) {
|
||||
byte[] c = new byte[bufferSize];
|
||||
try (final InputStream is = getInputStream(file)) {
|
||||
final byte[] c = new byte[bufferSize];
|
||||
int readChars = is.read(c);
|
||||
if (readChars == -1) {
|
||||
// 空文件,返回0
|
||||
@ -603,7 +603,7 @@ public class FileUtil extends PathUtil {
|
||||
}
|
||||
|
||||
return count;
|
||||
} catch (IOException e) {
|
||||
} catch (final IOException e) {
|
||||
throw new IORuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user