We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f04325 commit d11b421Copy full SHA for d11b421
core/src/main/java/io/grpc/internal/WritableBufferAllocator.java
@@ -32,5 +32,7 @@ public interface WritableBufferAllocator {
32
* Request a new {@link WritableBuffer} with the given {@code capacityHint}. This method is
33
* similar to {@link #allocate(int)}, but there is no need to allocate greater capacity.
34
*/
35
- WritableBuffer allocateKnownLength(int capacityHint);
+ default WritableBuffer allocateKnownLength(int capacityHint) {
36
+ return allocate(capacityHint);
37
+ }
38
}
0 commit comments