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.
Do not throw an exception when failed to get a header
Motivation: It is often very expensive to instantiate an exception. TextHeader should not raise an exception when it failed to find a header or when its header value is not valid. Modification: - Change the return type of the getter methods to Integer and Long so that null is returned when no header is found or its value is invalid - Update Javadoc Result: - Fixes netty#2758 - No unnecessary instantiation of exceptions
- Loading branch information
Showing
3 changed files
with
231 additions
and
101 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
Oops, something went wrong.