forked from uber/NullAway
-
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.
Revert "Model parseXXX methods of boxed primitives as having @nonnull …
…parameter (uber#270)" (uber#281) This reverts commit 33152f1 (uber#270). See uber#269 for an explanation. Basically, `parseXXX` throws a `NumberFormatException` when passed `null`, and making it not able to take `null` means code that is correct now (because it catches `NumberFormatException`) would be broken in NullAway in a way that can't be resolved by simply adding nullness annotations or `castToNonNull`. This is, arguably, bad design on the part of all those `parseXXX` functions, but we have no control over that.
- Loading branch information
1 parent
bab710c
commit 4a6e4dd
Showing
2 changed files
with
0 additions
and
43 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