Skip to content

Drop redundant getOperation() overrides in the AuthorizationIntent records #5506

Closed

Description

@ZephyrYWZhou

AuthorizationIntent exposes the operation through getOperation(). All seven implementations are records with an operation component, so their generated accessor is operation() — which means every record has to add a getOperation() override that just forwards to it.

The neighboring records already use canonical accessors (AuthorizationRequest.principal()/intents(), ResolvedIntent.targets()/secondaries()), so getOperation() is the only bean-style getter left in this area.

Renaming getOperation() to operation() lets each record's generated accessor implement the interface directly, so all seven overrides can go away. Pure rename, no behavior change.

Activity

  1. added 3 commits that reference this issue on Sep 13, 2026
    95db7f7
    3c21ce8
    4c6965c
  2. added a commit that references this issue on Sep 16, 2026
    bcad27d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions