-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not compare request methods and response statuses by reference (#913)
Motivation: `HttpRequestMethod` and `HttpResponseStatus` are classes with static constants, not enums. We should use `equals` to compare them. Otherwise, users' implementation of these classes won't work correctly. Modifications: - Replace all `==` and `!=` for `HttpRequestMetaData.method()` and `HttpResponseMetaData.status()` with `equals`; Result: Correct comparison of `HttpRequestMethod` and `HttpResponseStatus` objects.
- Loading branch information
1 parent
e137e41
commit 15dbe98
Showing
4 changed files
with
5 additions
and
4 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
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