Skip to content

Commit

Permalink
Update RegisteredToolchainsValue.Key to use @AutoCodec.Interner i…
Browse files Browse the repository at this point in the history
…nstead of `@AutoCodec.Instantiator`.

PiperOrigin-RevId: 602403718
Change-Id: I3a64519c1d476763f121878f915f917c62cc5d1e
  • Loading branch information
Googler authored and copybara-github committed Jan 29, 2024
1 parent 3bd6e42 commit d3a8298
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ private Key(BuildConfigurationKey configurationKey) {
this.configurationKey = configurationKey;
}

@AutoCodec.Instantiator
@VisibleForSerialization
static Key of(BuildConfigurationKey configurationKey) {
private static Key of(BuildConfigurationKey configurationKey) {
return interner.intern(new Key(configurationKey));
}

@VisibleForSerialization
@AutoCodec.Interner
static Key intern(Key key) {
return interner.intern(key);
}

@Override
public SkyFunctionName functionName() {
return SkyFunctions.REGISTERED_TOOLCHAINS;
Expand Down

0 comments on commit d3a8298

Please sign in to comment.