Skip to content

Commit 79cd67c

Browse files
committed
Fix reflection warning in Jetty tests
1 parent 581655b commit 79cd67c

File tree

1 file changed

+2
-1
lines changed
  • ring-jetty-adapter/test/ring/adapter/test

1 file changed

+2
-1
lines changed

ring-jetty-adapter/test/ring/adapter/test/jetty.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,8 @@
816816
(on-close [_ _ _ _])
817817
wsp/PingListener
818818
(on-ping [_ sock data]
819-
(swap! log conj [:ping (buf->str (.duplicate data))])
819+
(swap! log conj
820+
[:ping (buf->str (.duplicate ^ByteBuffer data))])
820821
(ws/pong sock data)))})]
821822
(with-server handler {:port test-port}
822823
(let [ws @(hato/websocket test-websocket-url

0 commit comments

Comments
 (0)