From 57d0b2a14e37623228b8b823433da22edefd4d0e Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 17 Aug 2020 16:48:48 +0200 Subject: [PATCH] Fixed generics --- src/dorkbox/network/connection/Ping.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dorkbox/network/connection/Ping.kt b/src/dorkbox/network/connection/Ping.kt index e42c9f2b..a72f8d7a 100644 --- a/src/dorkbox/network/connection/Ping.kt +++ b/src/dorkbox/network/connection/Ping.kt @@ -25,13 +25,13 @@ interface Ping { * Adds a ping listener to this future. The listener is notified when this future is done. If this future is already completed, * then the listener is notified immediately. */ - fun add(listener: PingListener?) + fun add(listener: PingListener) /** * Removes a ping listener from this future. The listener is no longer notified when this future is done. If the listener * was not previously associated with this future, this method does nothing and returns silently. */ - fun remove(listener: PingListener?) + fun remove(listener: PingListener) /** * Cancel this Ping.