forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
De-duplicate PooledByteBuf implementations (netty#9120)
Motivation There's quite a lot of duplicate/equivalent logic across the various concrete ByteBuf implementations. We could take this even further but for now I've focused on the PooledByteBuf sub-hierarchy. Modifications - Move common logic/methods into existing PooledByteBuf abstract superclass - Shorten PooledByteBuf.capacity(int) method implementation Result Less code to maintain
- Loading branch information
1 parent
c32c9b4
commit 6381d07
Showing
5 changed files
with
117 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.