优化Stream close 的判断。
This commit is contained in:
parent
a967c85bf9
commit
570b012c4c
@ -87,6 +87,9 @@ public class IOUtil {
|
||||
|
||||
public static void close(Closeable stream) {
|
||||
try {
|
||||
if(stream == null){
|
||||
return ;
|
||||
}
|
||||
stream.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user