Skip to content

Commit

Permalink
Update RegisteredExecutionPlatformsValue.Key to use `@AutoCodec.Int…
Browse files Browse the repository at this point in the history
…erner` instead of `@AutoCodec.Instantiator`.

PiperOrigin-RevId: 600869781
Change-Id: Iacf4af9ab4a109364e97ad0c2f2072807853798a
  • Loading branch information
Googler authored and copybara-github committed Jan 23, 2024
1 parent 733e4a5 commit 829182e
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,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_EXECUTION_PLATFORMS;
Expand Down

0 comments on commit 829182e

Please sign in to comment.