[Java] byte buffer factory returned buffer capcity is used instead of the requested size (#5558)
[Java] byte buffer factory returned buffer capcity is used instead of the requested size (#5558)

* byte buffer factory returned buffer is used instead of the requested capacity

* byte buffer factory returned buffer is used instead of the requested capacity

* Comment fix

alexames/flatbuffers,pjulien/flatbuffers,alexames/flatbuffers,alexames/flatbuffers,alexames/flatbuffers,alexames/flatbuffers,alexames/flatbuffers,google/flatbuffers,google/flatbuffers,pjulien/flatbuffers,evolutional/flatbuffers,DavadDi/flatbuffers,google/flatbuffers,alexames/flatbuffers,alexames/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,pjulien/flatbuffers,evolutional/flatbuffers,evolutional/flatbuffers,google/flatbuffers,DavadDi/flatbuffers,DavadDi/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,pjulien/flatbuffers,google/flatbuffers,pjulien/flatbuffers,DavadDi/flatbuffers,google/flatbuffers,alexames/flatbuffers,google/flatbuffers,DavadDi/flatbuffers,DavadDi/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,pjulien/flatbuffers,google/flatbuffers,pjulien/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,pjulien/flatbuffers,google/flatbuffers,alexames/flatbuffers,google/flatbuffers,evolutional/flatbuffers,pjulien/flatbuffers,google/flatbuffers,evolutional/flatbuffers,google/flatbuffers,pjulien/flatbuffers,google/flatbuffers,pjulien/flatbuffers,google/flatbuffers,evolutional/flatbuffers,evolutional/flatbuffers,evolutional/flatbuffers,pjulien/flatbuffers,evolutional/flatbuffers,google/flatbuffers,alexames/flatbuffers