diff --git a/Dorkbox-Network/src/dorkbox/network/Client.java b/Dorkbox-Network/src/dorkbox/network/Client.java index 05b18448..528ddb5b 100644 --- a/Dorkbox-Network/src/dorkbox/network/Client.java +++ b/Dorkbox-Network/src/dorkbox/network/Client.java @@ -81,6 +81,7 @@ class Client extends EndPointClient implements Connecti /** * Starts a REMOTE only client, which will connect to the specified host using the specified Connections Options */ + @SuppressWarnings("AutoBoxing") public Client(final Configuration options) throws InitializationException, SecurityException, IOException { super(options); @@ -255,7 +256,7 @@ class Client extends EndPointClient implements Connecti /** * Allows the client to reconnect to the last connected server * - * @throws InterruptedException if the client is unable to reconnect in the previously requested connection-timeout + * @throws IOException if the client is unable to reconnect in the previously requested connection-timeout */ public void reconnect() throws IOException { @@ -265,7 +266,7 @@ class Client extends EndPointClient implements Connecti /** * Allows the client to reconnect to the last connected server * - * @throws InterruptedException if the client is unable to reconnect in the requested time + * @throws IOException if the client is unable to reconnect in the requested time */ public void reconnect(int connectionTimeout) throws IOException { @@ -412,9 +413,9 @@ class Client extends EndPointClient implements Connecti */ @Override public - Iface createRemoteObject(final Class remoteImplementationClass) throws IOException { + Iface createProxyObject(final Class remoteImplementationClass) throws IOException { return this.connectionManager.getConnection0() - .createRemoteObject(remoteImplementationClass); + .createProxyObject(remoteImplementationClass); } /** @@ -442,9 +443,9 @@ class Client extends EndPointClient implements Connecti */ @Override public - Iface getRemoteObject(final int objectId) throws IOException { + Iface getProxyObject(final int objectId) throws IOException { return this.connectionManager.getConnection0() - .getRemoteObject(objectId); + .getProxyObject(objectId); } /** diff --git a/Dorkbox-Network/src/dorkbox/network/Server.java b/Dorkbox-Network/src/dorkbox/network/Server.java index 1a3bbebf..5e652ba7 100644 --- a/Dorkbox-Network/src/dorkbox/network/Server.java +++ b/Dorkbox-Network/src/dorkbox/network/Server.java @@ -87,6 +87,7 @@ class Server extends EndPointServer { /** * Convenience method to starts a server with the specified Connection Options */ + @SuppressWarnings("AutoBoxing") public Server(Configuration options) throws InitializationException, SecurityException, IOException { // watch-out for serialization... it can be NULL incoming. The EndPoint (superclass) sets it, if null, so @@ -175,7 +176,7 @@ class Server extends EndPointServer { .channel(LocalServerChannel.class) .option(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT) .localAddress(new LocalAddress(this.localChannelName)) - .childHandler(new RegistrationLocalHandlerServer(threadName, this.registrationWrapper)); + .childHandler(new RegistrationLocalHandlerServer(threadName, this.registrationWrapper)); manageForShutdown(boss); manageForShutdown(worker);