HDFS-12264. DataNode uses a deprecated method IoUtils#cleanup. Contributed by Ajay Yadav.
This commit is contained in:
parent
adb84f34db
commit
bc206806da
|
@ -293,7 +293,7 @@ public class IOUtils {
|
||||||
*/
|
*/
|
||||||
public static void closeStream(java.io.Closeable stream) {
|
public static void closeStream(java.io.Closeable stream) {
|
||||||
if (stream != null) {
|
if (stream != null) {
|
||||||
cleanup(null, stream);
|
cleanupWithLogger(null, stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue