You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticfinalLoggerLOG = LogHelper.getLogger(CheckedInputStream.class, "Utility to ensure InputStreams are closed");
35
+
privatefinalState_state;
34
36
35
37
privatestaticclassStateimplementsRunnable
36
38
{
@@ -49,36 +51,39 @@ public void run()
49
51
{
50
52
if (!_closed)
51
53
{
52
-
LogManager.getLogger(CheckedInputStream.class).error("InputStream was not closed. Creation stacktrace:" + ExceptionUtil.renderStackTrace(_creationStackTrace));
53
-
try
54
-
{
55
-
_is.close();
56
-
}
57
-
catch (IOExceptione)
58
-
{
59
-
LogManager.getLogger(CheckedInputStream.class).error("Failed to close InputStream", e);
60
-
}
61
-
finally
62
-
{
63
-
_closed = true;
64
-
}
54
+
LOG.error("InputStream was not closed. Creation stacktrace:" + ExceptionUtil.renderStackTrace(_creationStackTrace));
0 commit comments