dlg99 commented on code in PR #15063:
URL: https://github.com/apache/pulsar/pull/15063#discussion_r861197591
##########
tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/impl/BlockAwareSegmentInputStreamImpl.java:
##########
@@ -161,6 +211,45 @@ private List<ByteBuf> readNextEntriesFromLedger(long
start, long maxNumberEntrie
}
}
+ @Override
+ public int read(byte[] b, int off, int len) throws IOException {
+ if (b == null) {
+ throw new NullPointerException();
Review Comment:
IllegalArgumentExcepton? otherwise can as well skip this and let the code
below throw NPE.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]