优化Stream close 的判断。

This commit is contained in:
fengyapeng committed 2017-01-04 19:06:49 +08:00
1 parent a967c85bf9
commit 570b012c4c
1 file changed
+3
@@ -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();