-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid suggesting castToNonNull fixes in certain cases (#799)
We avoid suggesting a `castToNonNull` fix if either (1) the expression is the `null` literal (i.e., don't suggest `castToNonNull(null)`), or (2) the expression is a `@Nullable` parameter (see code comments for justification). In these cases, we suggest a `@SuppressWarnings` annotation instead. Here we also add some tests to improve coverage of the `ErrorBuilder` class. --------- Co-authored-by: Lázaro Clapp <lazaro@uber.com>
- Loading branch information
1 parent
56d5ff1
commit 154b758
Showing
2 changed files
with
160 additions
and
6 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