Skip to content

Commit

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

PiperOrigin-RevId: 598914304
Change-Id: Icd45e4615ecf30bcfe8aaf61adf242d3d830a848
  • Loading branch information
Googler authored and copybara-github committed Jan 16, 2024
1 parent 823717d commit a15deaa
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,16 @@ private Key(PackageIdentifier arg) {
super(arg);
}

@VisibleForSerialization
@AutoCodec.Instantiator
static Key create(PackageIdentifier arg) {
private static Key create(PackageIdentifier arg) {
return interner.intern(new Key(arg));
}

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

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

0 comments on commit a15deaa

Please sign in to comment.