refactoring

pull/1792/head
Nikita Koksharov 6 years ago
parent ce3fd29f70
commit f7b0328c33

@ -82,11 +82,6 @@ public class DefaultReferenceCodecProvider implements ReferenceCodecProvider {
return getCodec(codecClass, rObjectClass);
}
@Override
public <T extends Codec> T getCodec(Class<T> codecClass, RObject rObject) {
return getCodec(codecClass, rObject.getClass(), rObject.getName());
}
@Override
public <T extends Codec> void registerCodec(Class<T> cls, T codec) {
if (!cls.isInstance(codec)) {

@ -89,16 +89,6 @@ public interface ReferenceCodecProvider {
*/
<T extends Codec, K extends RObject> T getCodec(Class<T> codecClass, Class<K> rObjectClass, String name);
/**
* Get a codec instance by its class and an instance of the RObject.
*
* @param <T> the expected codec type.
* @param codecClass the codec class used to lookup the codec.
* @param rObject instance of the RObject implementation.
* @return the cached codec instance.
*/
<T extends Codec> T getCodec(Class<T> codecClass, RObject rObject);
/**
* Register a codec by its class or super class.
*

Loading…
Cancel
Save