mirror of https://github.com/apache/kafka.git
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:
parent
020ead4b97
commit
652cca377a
|
@ -248,7 +248,7 @@ public abstract class Type {
|
||||||
if (item instanceof Integer)
|
if (item instanceof Integer)
|
||||||
return (Integer) item;
|
return (Integer) item;
|
||||||
else
|
else
|
||||||
throw new SchemaException(item + " is not an unsigned short.");
|
throw new SchemaException(item + " is not an a Integer (encoding an unsigned short)");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -320,7 +320,7 @@ public abstract class Type {
|
||||||
if (item instanceof Long)
|
if (item instanceof Long)
|
||||||
return (Long) item;
|
return (Long) item;
|
||||||
else
|
else
|
||||||
throw new SchemaException(item + " is not a Long.");
|
throw new SchemaException(item + " is not an a Long (encoding an unsigned integer).");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue