aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java
diff options
context:
space:
mode:
authorGravatar lberki <lberki@google.com>2017-06-12 13:32:12 +0200
committerGravatar Yun Peng <pcloudy@google.com>2017-06-12 17:39:50 +0200
commit9c4c60d39204ad4bd1c2ef749221423f0d429e1c (patch)
tree8449be24e64fa038a8873dd9bb0f8c56dacfb5dc /src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java
parent1d45b5d1db749455f424aa0086577261e560fe7b (diff)
Remove ErrorSensingEventHandler#resetErrors().
The call sites in QueryEnvironment implementations were not needed because QueryEnvironments are always made afresh. RELNOTES: None. PiperOrigin-RevId: 158698881
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java b/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java
index 66fd324743..7d8f38c570 100644
--- a/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java
+++ b/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java
@@ -133,6 +133,12 @@ public class ProtoOutputFormatter extends AbstractUnorderedFormatter {
@Override
public ThreadSafeOutputFormatterCallback<Target> createStreamCallback(
OutputStream out, QueryOptions options, QueryEnvironment<?> env) {
+ return createStreamCallback(out, options);
+ }
+
+ @VisibleForTesting
+ public ThreadSafeOutputFormatterCallback<Target> createStreamCallback(
+ OutputStream out, QueryOptions options) {
return new SynchronizedDelegatingOutputFormatterCallback<>(
createPostFactoStreamCallback(out, options));
}