We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5cc71e commit 0a72fb0Copy full SHA for 0a72fb0
src/main/java/com/cloudbees/syslog/integration/jul/SyslogHandler.java
@@ -119,12 +119,10 @@ public void flush() {
119
120
@Override
121
public void close() throws SecurityException {
122
- if (syslogMessageSender instanceof Closeable) {
123
- try {
124
- ((Closeable) syslogMessageSender).close();
125
- } catch (IOException e) {
126
- e.printStackTrace();
127
- }
+ try {
+ syslogMessageSender.close();
+ } catch (IOException e) {
+ e.printStackTrace();
128
}
129
130
0 commit comments