diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec/AutoCodec.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec/AutoCodec.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec/AutoCodec.java b/src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec/AutoCodec.java index be6a2bb47b..b627952a2f 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec/AutoCodec.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec/AutoCodec.java @@ -73,8 +73,6 @@ public @interface AutoCodec { * <p>Commonly used with the POLYMORPHIC strategy. * * <p>The serialized class must have a codec accessible, static INSTANCE field. - * - * <p>Illegal to use with a non-Void dependency. */ SINGLETON } @@ -88,37 +86,7 @@ public @interface AutoCodec { @Target({ElementType.CONSTRUCTOR, ElementType.METHOD}) @interface Instantiator {} - /** - * Marks a specific constructor parameter as a dependency. - * - * <p>When a constructor selected for the {@code INSTANTIATOR} strategy has one of its parameters - * tagged {@code @Dependency}, {@code @AutoCodec} generates an {@link - * com.google.devtools.build.lib.skyframe.serialization.InjectingObjectCodec} instead of the usual - * {@link com.google.devtools.build.lib.skyframe.serialization.ObjectCodec} with the dependency - * type parameter matching the tagged parameter type. - * - * <p>At deserialization, the {@code @Dependency} tagged parameter will be forwarded from the - * {@code dependency} parameter of {@link - * com.google.devtools.build.lib.skyframe.serialization.InjectingObjectCodec#deserialize}. - * - * <p>A compiler error will result if more than one constructor parameter has the - * {@code @Dependency} annotation or if the annotation itself has a dependency element. - */ - @Target(ElementType.PARAMETER) - @interface Dependency {} - Strategy strategy() default Strategy.INSTANTIATOR; - /** - * Specifies a deserialization dependency. - * - * <p>When non-{@link Void}, generates an {@link - * com.google.devtools.build.lib.skyframe.serialization.InjectingObjectCodec} instead of the usual - * {@link com.google.devtools.build.lib.skyframe.serialization.ObjectCodec} with the dependency - * type parameter matching the returned type. - * - * <p>It is an error to use this in conjunction with {@code @AutoCodec.Dependency}. - */ - Class<?> dependency() default Void.class; /** * Signals that the annotated element is only visible for use by serialization. It should not be |