-
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.
Make Package.Metadata a record class
This codifies the previous CLs' efforts to make `Package.Metadata` immutable. It also saves a few LOC. - Accessors on `Metadata` are deleted, in favor of the implicit ones generated by `record`. Updated usages to prefer these accessors over direct access to the fields. `Metadata#getPackageDirectory()` remains as an explicit accessor since it's not materialized as a field. - Add `@Nullable` for `configSettingVisibilityPolicy`. - Rename `Metadata#filename` -> `Metadata#buildFilename` for clarity Work toward #19922. PiperOrigin-RevId: 676389043 Change-Id: Id40dab239d160681be69b48d111ac8c32b475163
- Loading branch information
1 parent
61751b3
commit 8d0e4db
Showing
1 changed file
with
70 additions
and
117 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