public class CodecManager
{
private final ConverterManager defaultManager = ConverterManager.defaultManager();
private final Map<Class<? extends Codec>, Codec> codecs = new HashMap<Class<? extends Codec>, Codec>();
@SuppressWarnings("unchecked")
<BUG>public <Codec extends de.cubeisland.engine.reflect.codec.Codec> Codec getCodec(Class<Codec> codecClass)
{
Codec codec = (Codec)this.codecs.get(codecClass);
if (codec == null) // Codec not registered yet! Try to auto-register...</BUG>
{

public class CodecManager
{
private final ConverterManager defaultManager = ConverterManager.defaultManager();
private final Map<Class<? extends Codec>, Codec> codecs = new HashMap<Class<? extends Codec>, Codec>();
@SuppressWarnings("unchecked")
public <C extends Codec> C getCodec(Class<C> codecClass)
{
C codec = (C)this.codecs.get(codecClass);
if (codec == null) // Codec not registered yet! Try to auto-register...
{
