-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/packages: Fix implicit nullable types
In EntityChangeFactory::newFromUpdate(), I initially wanted to make both EntityDocument arguments required, but Phan and the tests showed that WikiPageActionEntityChangeFactory::newForPageDeleted() actually calls it without the last argument, so let’s leave the last default argument in place. (Making both EntityDocument arguments optional doesn’t really make sense because at least one has to be non-null according to the condition immediately below the method signature – although I could also be convinced that having only one of the parameters optional is weird and inconsistent and it would be nicer to make them both optional after all, if anyone feels that way.) Bug: T379509 Change-Id: I7840b2c1af4424effbb774b42c02813c73f113a7
- Loading branch information
1 parent
b83b175
commit 97319c3
Showing
6 changed files
with
14 additions
and
29 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
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