From 9c4c60d39204ad4bd1c2ef749221423f0d429e1c Mon Sep 17 00:00:00 2001 From: lberki Date: Mon, 12 Jun 2017 13:32:12 +0200 Subject: Remove ErrorSensingEventHandler#resetErrors(). The call sites in QueryEnvironment implementations were not needed because QueryEnvironments are always made afresh. RELNOTES: None. PiperOrigin-RevId: 158698881 --- .../devtools/build/lib/query2/output/ProtoOutputFormatter.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java') 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 createStreamCallback( OutputStream out, QueryOptions options, QueryEnvironment env) { + return createStreamCallback(out, options); + } + + @VisibleForTesting + public ThreadSafeOutputFormatterCallback createStreamCallback( + OutputStream out, QueryOptions options) { return new SynchronizedDelegatingOutputFormatterCallback<>( createPostFactoStreamCallback(out, options)); } -- cgit v1.2.3