Skip to content

Commit cfbfa3e

Browse files
committedJan 19, 2019
Fix Eastwood warnings
1 parent 71291da commit cfbfa3e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎eastwood.clj

+4
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@
88
{:linter :deprecations
99
:symbol-matches #{#"^public boolean java\.lang\.reflect\.AccessibleObject\.isAccessible\(\)$"}
1010
:reason "The replacement, canAccess(Object), was added in JDK9 – but we still support JDK8."})
11+
12+
(disable-warning
13+
{:linter :deprecations
14+
:symbol-matches #{#"^public final void java\.lang\.Thread\.stop\(\)$"}})

‎src/cider/nrepl/middleware/content_type.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@
106106

107107
(instance? java.awt.Image value)
108108
(with-open [bos (ByteArrayOutputStream.)]
109-
(ImageIO/write ^Image value "png" ^OutputStream bos)
110109
(merge response
111-
(slurp-reply ["image/png" {}] (.toByteArray bos))))
110+
(when (ImageIO/write ^Image value "png" ^OutputStream bos)
111+
(slurp-reply ["image/png" {}] (.toByteArray bos)))))
112112

113113
:else response))
114114

0 commit comments

Comments
 (0)
Please sign in to comment.