MINOR: correct the error message of validating uint32 (#10193)

Reviewers: Tom Bentley <tbentley@redhat.com>, David Jacot <djacot@confluent.io>
This commit is contained in:
Chia-Ping Tsai 2021-03-02 17:51:47 +08:00 committed by GitHub
parent 020ead4b97
commit 652cca377a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ public abstract class Type {
if (item instanceof Integer)
return (Integer) item;
else
throw new SchemaException(item + " is not an unsigned short.");
throw new SchemaException(item + " is not an a Integer (encoding an unsigned short)");
}
@Override
@ -320,7 +320,7 @@ public abstract class Type {
if (item instanceof Long)
return (Long) item;
else
throw new SchemaException(item + " is not a Long.");
throw new SchemaException(item + " is not an a Long (encoding an unsigned integer).");
}
@Override