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 6, 2023
1 parent 32ad5a8 commit cda33e7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,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 cda33e7

Please sign in to comment.