Skip to content

Commit

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

PiperOrigin-RevId: 592313654
Change-Id: I51a7f1802b62110bc3b14706c0e14b524be00f8c
  • Loading branch information
Googler authored and copybara-github committed Dec 19, 2023
1 parent fba504f commit 8ebb3bf
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ private Key(Boolean arg) {
super(arg);
}

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

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

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

0 comments on commit 8ebb3bf

Please sign in to comment.