Github user mohammadshahidkhan commented on a diff in the pull request:
    --- Diff: 
    @@ -447,9 +447,7 @@ private void writeDataToFile(FileChannel channel, 
byte[][] dataChunkBytes) {
             for (int j = 0; j < nodeHolderList.size(); j++) {
               nodeHolder = nodeHolderList.get(j);
               bufferSize = nodeHolder.getDataArray()[i].length;
    -          buffer = ByteBuffer.allocate(bufferSize);
    -          buffer.put(nodeHolder.getDataArray()[i]);
    -          buffer.flip();
    +          buffer = ByteBuffer.wrap(nodeHolder.getDataArray()[i]);
    --- End diff --
    @jackylk If i am not wrong ByteBuffer.wrap could be used even for  below 
lines of code.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

Reply via email to