Skip to content

Commit

Permalink
Fix exception message
Browse files Browse the repository at this point in the history
Closes #10816
  • Loading branch information
alvarosanchez authored May 13, 2024
1 parent 767c0f9 commit d55214c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ public void set(@NonNull B bean, @Nullable P value) {
ArgumentUtils.requireNonNull("bean", bean);

if (!beanType.isInstance(bean)) {
throw new IllegalArgumentException("Invalid bean [" + bean + "] for type: " + bean);
throw new IllegalArgumentException("Invalid bean [" + bean + "] for type: " + beanType);
}
if (isReadOnly()) {
throw new UnsupportedOperationException("Cannot write a read-only property: " + getName());
Expand Down

0 comments on commit d55214c

Please sign in to comment.