Fix Outputstream proxy for kaocha
This commit is contained in:
parent
6feb785cb0
commit
fe6042a06f
1 changed files with 8 additions and 8 deletions
|
|
@ -103,15 +103,15 @@
|
||||||
|
|
||||||
["java.io.OutputStream" #{}]
|
["java.io.OutputStream" #{}]
|
||||||
(proxy [java.io.OutputStream] []
|
(proxy [java.io.OutputStream] []
|
||||||
(close [] (if-let [m (get methods 'close)]
|
(close [] (when-let [m (get methods 'close)]
|
||||||
(m this)
|
(m this)))
|
||||||
(proxy-super close)))
|
(flush [] (when-let [m (get methods 'flush)]
|
||||||
(flush [] (if-let [m (get methods 'flush)]
|
(m this)))
|
||||||
(m this)
|
|
||||||
(proxy-super flush)))
|
|
||||||
(write
|
(write
|
||||||
([b] ((method-or-bust methods 'write) this b))
|
([b]
|
||||||
([b off len] ((method-or-bust methods 'write) this b off len))))
|
((method-or-bust methods 'write) this b))
|
||||||
|
([b off len]
|
||||||
|
((method-or-bust methods 'write) this b off len))))
|
||||||
, ;; keep this for merge friendliness
|
, ;; keep this for merge friendliness
|
||||||
)))
|
)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue