Skip to content

Commit

Permalink
Mark native java providers that are also StarlarkValues immutable
Browse files Browse the repository at this point in the history
Fixes bazelbuild#19999

PiperOrigin-RevId: 578178718
Change-Id: I2713a4f28d3ed248e7e0e4d67bc3c489f937a8e5
  • Loading branch information
hvadehra authored and copybara-github committed Oct 31, 2023
1 parent 8305a2c commit e238512
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ && getTransitiveGenClassJars().isEmpty()
@AutoValue
abstract class NativeJavaGenJarsProvider implements JavaGenJarsProvider {

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

@Override
public abstract boolean usesAnnotationProcessing();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
abstract class JavaModuleFlagsProvider
implements JavaInfoInternalProvider, JavaModuleFlagsProviderApi {

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

public abstract NestedSet<String> addExports();

public abstract NestedSet<String> addOpens();
Expand Down

0 comments on commit e238512

Please sign in to comment.