Fixed code

This commit is contained in:
Luca Frosini 2020-02-03 11:22:12 +01:00
parent ede8f1be76
commit 69647bbc32
1 changed files with 1 additions and 2 deletions

View File

@ -38,7 +38,6 @@ import org.gcube.informationsystem.resourceregistry.types.relations.IsRelatedToT
import org.gcube.informationsystem.types.OrientDBType; import org.gcube.informationsystem.types.OrientDBType;
import org.gcube.informationsystem.types.TypeBinder; import org.gcube.informationsystem.types.TypeBinder;
import org.gcube.informationsystem.types.reference.Type; import org.gcube.informationsystem.types.reference.Type;
import org.gcube.informationsystem.types.reference.TypeWithProperties;
import org.gcube.informationsystem.types.reference.entities.EntityType; import org.gcube.informationsystem.types.reference.entities.EntityType;
import org.gcube.informationsystem.types.reference.entities.FacetType; import org.gcube.informationsystem.types.reference.entities.FacetType;
import org.gcube.informationsystem.types.reference.entities.ResourceType; import org.gcube.informationsystem.types.reference.entities.ResourceType;
@ -292,7 +291,7 @@ public class SchemaManagementImpl implements SchemaManagement {
if(!(type instanceof ResourceType)) { if(!(type instanceof ResourceType)) {
// A Resource cannot contains any properties. // A Resource cannot contains any properties.
Set<PropertyDefinition> propertyDefinitions = ((TypeWithProperties) type).getProperties(); Set<PropertyDefinition> propertyDefinitions = type.getProperties();
if(propertyDefinitions!=null) { if(propertyDefinitions!=null) {
for(PropertyDefinition propertyDefinition : propertyDefinitions) { for(PropertyDefinition propertyDefinition : propertyDefinitions) {