Simplify conditionals
See gh-39259
This commit is contained in:
committed by
Phillip Webb
parent
def7523398
commit
65a1ff84e6
@@ -68,7 +68,7 @@ class OperationMethodParameter implements OperationParameter {
|
||||
if (!ObjectUtils.isEmpty(this.parameter.getAnnotationsByType(Nullable.class))) {
|
||||
return false;
|
||||
}
|
||||
return (jsr305Present) ? new Jsr305().isMandatory(this.parameter) : true;
|
||||
return !jsr305Present || new Jsr305().isMandatory(this.parameter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user