Fixed constructor

This commit is contained in:
Luca Frosini 2019-10-28 17:37:19 +01:00
parent 45beeff1ef
commit fe15bea3de
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
// @JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.ANY)
@JsonTypeName(value=TypeDefinition.NAME)
public abstract class TypeDefinitionImpl<ISM extends ISManageable> extends ISManageableImpl implements TypeDefinition<ISM> {
public class TypeDefinitionImpl<ISM extends ISManageable> extends ISManageableImpl implements TypeDefinition<ISM> {
/**
* Generated Serial Version UID
@ -106,7 +106,7 @@ public abstract class TypeDefinitionImpl<ISM extends ISManageable> extends ISMan
} else if(BaseProperty.class.isAssignableFrom(clz)){
return new PropertyTypeDefinitionImpl(clz);
} else if(TypeDefinition.class.isAssignableFrom(clz)) {
return new DummyTypeDefinitionImpl(clz);
return new TypeDefinitionImpl(clz);
} else {
throw new RuntimeException("Serialization required");
}