Skip to content

Commit

Permalink
Changed per code review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
radovanradic committed Jul 25, 2023
1 parent 29d3df9 commit aac1692
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,11 @@ public DerProperty(ConversionService conversionService,
this.instrospection = instrospection;
this.index = index;
this.argument = argument;
this.mustSetField = argument.isNonNull() || (!argument.getType().equals(Object.class) && (argument.isAssignableFrom(Optional.class)
|| argument.isAssignableFrom(OptionalLong.class)
|| argument.isAssignableFrom(OptionalDouble.class)
|| argument.isAssignableFrom(OptionalInt.class)));
Class<?> type = argument.getType();
this.mustSetField = argument.isNonNull() || type.equals(Optional.class)
|| type.equals(OptionalLong.class)
|| type.equals(OptionalDouble.class)
|| type.equals(OptionalInt.class);
this.nonNull = argument.isNonNull();
this.nullable = argument.isNullable();
if (beanProperty != null) {
Expand Down

0 comments on commit aac1692

Please sign in to comment.