diff --git a/src/dorkbox/network/pipeline/ByteBufInput.java b/src/dorkbox/network/pipeline/ByteBufInput.java index 347d8dfd..a081f884 100644 --- a/src/dorkbox/network/pipeline/ByteBufInput.java +++ b/src/dorkbox/network/pipeline/ByteBufInput.java @@ -34,14 +34,14 @@ */ package dorkbox.network.pipeline; -import com.esotericsoftware.kryo.KryoException; -import com.esotericsoftware.kryo.io.Input; -import com.esotericsoftware.kryo.io.Output; -import io.netty.buffer.ByteBuf; - import java.io.DataInput; import java.io.InputStream; +import com.esotericsoftware.kryo.KryoException; +import com.esotericsoftware.kryo.io.Input; +import com.esotericsoftware.kryo.io.Output; + +import io.netty.buffer.ByteBuf; /** * An {@link InputStream} which reads data from a {@link ByteBuf}. diff --git a/src/dorkbox/network/rmi/RemoteObjectCallback.java b/src/dorkbox/network/rmi/RemoteObjectCallback.java index 65164cdb..d67f83ed 100644 --- a/src/dorkbox/network/rmi/RemoteObjectCallback.java +++ b/src/dorkbox/network/rmi/RemoteObjectCallback.java @@ -1,7 +1,22 @@ +/* + * Copyright 2017 dorkbox, llc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package dorkbox.network.rmi; /** - * + * Callback for creating remote RMI classes */ public interface RemoteObjectCallback { diff --git a/src/dorkbox/network/rmi/TimeoutException.java b/src/dorkbox/network/rmi/TimeoutException.java index 75e942cc..3cc16936 100644 --- a/src/dorkbox/network/rmi/TimeoutException.java +++ b/src/dorkbox/network/rmi/TimeoutException.java @@ -41,7 +41,8 @@ import java.io.IOException; * RemoteObject#setResponseTimeout(int) response timeout}. * * @author Nathan Sweet - * @see dorkbox.network.connection.Connection#createRemoteObject(Class) + * @see dorkbox.network.connection.Connection#getRemoteObject(int, RemoteObjectCallback) + * @see dorkbox.network.connection.Connection#getRemoteObject(Class, RemoteObjectCallback) */ public class TimeoutException extends IOException { diff --git a/src/dorkbox/network/util/RmiSerializationManager.java b/src/dorkbox/network/util/RmiSerializationManager.java index 4558cd5d..7df2760b 100644 --- a/src/dorkbox/network/util/RmiSerializationManager.java +++ b/src/dorkbox/network/util/RmiSerializationManager.java @@ -15,6 +15,8 @@ */ package dorkbox.network.util; +import com.esotericsoftware.kryo.Kryo; +import com.esotericsoftware.kryo.KryoException; import com.esotericsoftware.kryo.Serializer; import dorkbox.network.connection.KryoExtra; @@ -65,7 +67,6 @@ interface RmiSerializationManager extends SerializationManager { @Override RmiSerializationManager register(Class clazz, Serializer serializer, int id); - /** * Necessary to register classes for RMI, only called once when the RMI bridge is created. *