sijie commented on a change in pull request #5123: Modify the schema decode method can decode ByteBuf URL: https://github.com/apache/pulsar/pull/5123#discussion_r322405151
########## File path: pulsar-client/src/main/java/org/apache/pulsar/client/impl/schema/FloatSchema.java ########## @@ -45,6 +45,13 @@ public void validate(byte[] message) { } } + @Override + public void validate(ByteBuf message) { + if (message.readableBytes()!= 4) { Review comment: ```suggestion if (message.readableBytes() != 4) { ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services