Skip to content

Commit

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

PiperOrigin-RevId: 600528970
Change-Id: Ic67d1339517eb4fe28bb325d37b634eef94c0c2b
  • Loading branch information
Googler authored and copybara-github committed Jan 22, 2024
1 parent 799c6fc commit 6d579e4
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,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.PACKAGE_ERROR;
Expand Down

0 comments on commit 6d579e4

Please sign in to comment.