Fixed code style

This commit is contained in:
Luca Frosini 2021-01-20 10:17:23 +01:00
parent 97105446cb
commit bddc3b2556
1 changed files with 6 additions and 2 deletions

View File

@ -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);