diff options
author | shahan <shahan@google.com> | 2018-02-23 15:41:52 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-23 15:43:54 -0800 |
commit | bbbf3dce2b95f054c8f2e85746b6b50b47740f61 (patch) | |
tree | 04d99f077d117a513d97651526c77cccada47b53 /src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java | |
parent | 62476a2738456c14bf92b6bcc81ade2c93ca7e87 (diff) |
Integrates CodecScanner into SkyValueEncoder.
* Deletes a number of CODEC references, now superceded by registry functionality.
* Minimal SkyKeySerializer modifications for correctness, as certain codec changes require
codecs to be in available in the registry.
PiperOrigin-RevId: 186834520
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java b/src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java index 8f5277a98a..2f8338989d 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java @@ -25,6 +25,7 @@ import com.google.devtools.build.lib.analysis.buildinfo.BuildInfoFactory.BuildIn import com.google.devtools.build.lib.packages.RuleVisibility; import com.google.devtools.build.lib.pkgcache.PathPackageLocator; import com.google.devtools.build.lib.skyframe.SkyframeActionExecutor.ConflictException; +import com.google.devtools.build.lib.skyframe.serialization.autocodec.AutoCodec; import com.google.devtools.build.lib.syntax.SkylarkSemantics; import com.google.devtools.build.skyframe.Injectable; import com.google.devtools.build.skyframe.LegacySkyKey; @@ -40,6 +41,7 @@ import javax.annotation.Nullable; * "precomputed" from skyframe's perspective and so the graph needs to be prepopulated with them * (e.g. via injection). */ +@AutoCodec public final class PrecomputedValue implements SkyValue { /** * An externally-injected precomputed value. Exists so that modules can inject precomputed values @@ -103,6 +105,7 @@ public final class PrecomputedValue implements SkyValue { private final Object value; + @AutoCodec.Instantiator public PrecomputedValue(Object value) { this.value = Preconditions.checkNotNull(value); } |