Skip to content

Commit

Permalink
Support byte array resolving in ObjectUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
alamar committed Jun 8, 2023
1 parent da67f8f commit 7b8cbcc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ public ThrowingFunction<String, Object, Exception> apply(@NotNull Class<?> c) {
return ObjectUtils::toBoolean;
if (c == UUID.class)
return UUID::fromString;
if (c == byte[].class)
return String::getBytes;
if (CoreDynamicEnum.class.isAssignableFrom(c))
return EnumCache.of(c)::get;
try {
Expand Down

0 comments on commit 7b8cbcc

Please sign in to comment.