Skip to content

Commit

Permalink
UUID type wrapper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Aug 21, 2023
1 parent ba914ce commit ad25606
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ static void digits(StringBuilder sb, long val, int digits) {

@Nullable
static UUID fromString(Object o) {
if (o instanceof UUID) {
return (UUID) o;
} else if (o == null) {
return null;
}

String s = String.valueOf(o);

if (o == null || !(s.length() == 32 || s.length() == 36)) {
Expand Down

0 comments on commit ad25606

Please sign in to comment.