removed unnecessary throw

This commit is contained in:
Timo Westkämper 2010-07-15 20:33:18 +00:00
parent 2d2f5a3cfd
commit f434b18e7f

View File

@ -385,9 +385,6 @@ public class EntitySerializer implements Serializer{
protected void introSuper(CodeWriter writer, EntityType model) throws IOException {
EntityType superType = model.getSuperType().getEntityType();
if (superType == null){
throw new IllegalStateException("Supertype is null for " + model);
}
String superQueryType = typeMappings.getPathType(superType, model, false);
if (!superType.hasEntityFields()){