Skip to content

Commit

Permalink
Mark JavaPluginData immutable.
Browse files Browse the repository at this point in the history
The structure is already immutable. This makes it possible to collect JavaPluginData-s in a depset, needed by rules_kotlin public repo.

PiperOrigin-RevId: 397723246
  • Loading branch information
comius authored and copybara-github committed Sep 20, 2021
1 parent c579155 commit 1c9779c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ interface JavaPluginDataApi extends StarlarkValue {
"Returns the files needed during execution by the encapsulated annotation processors.",
structField = true)
Depset /*<FileApi>*/ getProcessorDataForStarlark();

@Override
default boolean isImmutable() {
return true;
}
}

@StarlarkMethod(
Expand Down

0 comments on commit 1c9779c

Please sign in to comment.