diff --git a/src/main/java/org/gcube/informationsystem/types/impl/properties/PropertyDefinitionImpl.java b/src/main/java/org/gcube/informationsystem/types/impl/properties/PropertyDefinitionImpl.java index d6d3d5b..ffda200 100644 --- a/src/main/java/org/gcube/informationsystem/types/impl/properties/PropertyDefinitionImpl.java +++ b/src/main/java/org/gcube/informationsystem/types/impl/properties/PropertyDefinitionImpl.java @@ -70,8 +70,12 @@ public final class PropertyDefinitionImpl implements PropertyDefinition { this.mandatory= propertyAnnotation.mandatory(); this.notnull = !propertyAnnotation.nullable(); this.readonly = propertyAnnotation.readonly(); - if(propertyAnnotation.max()>0) this.max = propertyAnnotation.max(); - if(propertyAnnotation.max()>=propertyAnnotation.min() && propertyAnnotation.min()>0) this.min = propertyAnnotation.min(); + if(propertyAnnotation.max()>0) { + this.max = propertyAnnotation.max(); + } + if(propertyAnnotation.max()>=propertyAnnotation.min() && propertyAnnotation.min()>0) { + this.min = propertyAnnotation.min(); + } this.propertyTypeName = new PropertyTypeName(method);