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" #{}]
|
||||
(proxy [java.io.OutputStream] []
|
||||
(close [] (if-let [m (get methods 'close)]
|
||||
(m this)
|
||||
(proxy-super close)))
|
||||
(flush [] (if-let [m (get methods 'flush)]
|
||||
(m this)
|
||||
(proxy-super flush)))
|
||||
(close [] (when-let [m (get methods 'close)]
|
||||
(m this)))
|
||||
(flush [] (when-let [m (get methods 'flush)]
|
||||
(m this)))
|
||||
(write
|
||||
([b] ((method-or-bust methods 'write) this b))
|
||||
([b off len] ((method-or-bust methods 'write) this b off len))))
|
||||
([b]
|
||||
((method-or-bust methods 'write) this b))
|
||||
([b off len]
|
||||
((method-or-bust methods 'write) this b off len))))
|
||||
, ;; keep this for merge friendliness
|
||||
)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue