aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java
diff options
context:
space:
mode:
authorGravatar janakr <janakr@google.com>2018-03-21 07:43:11 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-21 07:44:34 -0700
commit9276164ea7388a8a55e11a2a2a3e02d9a631ffaf (patch)
treec365757d2eb1e4126c572e090c95943a46fed3a6 /src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java
parent67549a752c2316234b19d7b50ea84a8ae80d3669 (diff)
@AutoCodec SupportData.
PiperOrigin-RevId: 189905795
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java b/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java
index 924b8c87b6..d21a4d9d60 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java
@@ -21,23 +21,28 @@ import com.google.devtools.build.lib.actions.Artifact;
import com.google.devtools.build.lib.analysis.TransitiveInfoCollection;
import com.google.devtools.build.lib.collect.nestedset.NestedSet;
import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable;
+import com.google.devtools.build.lib.skyframe.serialization.autocodec.AutoCodec;
-/**
- * A helper class for the *Support classes containing some data from ProtoLibrary.
- */
+/** A helper class for the *Support classes containing some data from ProtoLibrary. */
+@AutoCodec
@AutoValue
@Immutable
public abstract class SupportData {
+ @AutoCodec.Instantiator
public static SupportData create(
Predicate<TransitiveInfoCollection> nonWeakDepsPredicate,
- ImmutableList<Artifact> protoSources,
+ ImmutableList<Artifact> directProtoSources,
NestedSet<Artifact> protosInDirectDeps,
NestedSet<Artifact> transitiveImports,
NestedSet<String> transitiveProtoPathFlags,
boolean hasProtoSources) {
return new AutoValue_SupportData(
- nonWeakDepsPredicate, protoSources, transitiveImports, protosInDirectDeps,
- transitiveProtoPathFlags, hasProtoSources);
+ nonWeakDepsPredicate,
+ directProtoSources,
+ transitiveImports,
+ protosInDirectDeps,
+ transitiveProtoPathFlags,
+ hasProtoSources);
}
public abstract Predicate<TransitiveInfoCollection> getNonWeakDepsPredicate();