diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaTargetAttributes.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaTargetAttributes.java index c60931f6f10fa5..9b219c4fcf3cd1 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaTargetAttributes.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaTargetAttributes.java @@ -130,7 +130,6 @@ public Builder addSourceFiles(Iterable sourceFiles) { @CanIgnoreReturnValue public Builder merge(JavaCompilationArgsProvider context, boolean pruneTransitiveDeps) { - addCompileTimeClassPathEntries(context.getTransitiveCompileTimeJars()); addCompileTimeClassPathEntries( pruneTransitiveDeps ? context.getDirectCompileTimeJars() : context.getTransitiveCompileTimeJars());