Skip to content

Commit

Permalink
Fix exception message (#10818)
Browse files Browse the repository at this point in the history
Closes #10816
  • Loading branch information
alvarosanchez committed May 13, 2024
1 parent 767c0f9 commit 3ad933b
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 3ad933b

Please sign in to comment.