Skip to content

Commit

Permalink
Merge pull request #530 from redmitry/error-message-fix
Browse files Browse the repository at this point in the history
minor error message fix
  • Loading branch information
otaviojava committed Jul 27, 2024
2 parents fe10cf4 + cd34f7d commit 5c77202
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public <T> T get(TypeSupplier<T> supplier) {
if (REFERENCE_READER.test(Objects.requireNonNull(supplier, "supplier is required"))) {
return REFERENCE_READER.convert(supplier, value);
}
throw new UnsupportedOperationException("The type " + supplier + " is not supported");
throw new UnsupportedOperationException("The type " + supplier.get().getTypeName() + " is not supported");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void shouldConvertMapIgnoringKeyValue() {
Map<String, List<String>> result = value.get(new TypeReference<>() {
});
}).isInstanceOf(UnsupportedOperationException.class)
.hasMessage("The type TypeReference{type=java.util.Map<java.lang.String, java.util.List<java.lang.String>>} is not supported");
.hasMessage("The type java.util.Map<java.lang.String, java.util.List<java.lang.String>> is not supported");
}

@Test
Expand Down

0 comments on commit 5c77202

Please sign in to comment.