-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify name conflict checking invariants
Previously, it was possible in theory, but not in practice, to call both addRule() and addRuleUnchecked() on the same Package.Builder. This CL removes that possibility, and in doing so makes it easier to reason about whether the ruleLabels map will be null. It also makes the outputFilePrefixes map nullable along the same lines as ruleLabels. Both maps are only used for validation, and so are irrelevant to Builders that use addRuleUnchecked. For completeness/correctness, replaceTarget is also updated to mention its interaction with this invariant. Work toward #19922. PiperOrigin-RevId: 595696336 Change-Id: I3965033784025e3dd6cfc85ec0b591a21c24de8c
- Loading branch information
1 parent
5ec0761
commit d0498fb
Showing
1 changed file
with
73 additions
and
30 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