From e0574a564c7ce04febcec6a60e543b6a94bb4809 Mon Sep 17 00:00:00 2001
From: Liam Miller-Cushon <cushon@google.com>
Date: Fri, 18 Oct 2024 16:35:40 -0700
Subject: [PATCH] Update Error Prone version to 2.34.0

And pass `--should-stop=ifError=FLOW`, see https://github.com/google/error-prone/releases/tag/v2.34.0

PiperOrigin-RevId: 687460131
---
 pom.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index ebea1ed3e..c31340223 100644
--- a/pom.xml
+++ b/pom.xml
@@ -89,7 +89,7 @@
     <guava.version>32.1.3-jre</guava.version>
     <truth.version>1.4.0</truth.version>
     <jspecify.version>1.0.0</jspecify.version>
-    <errorprone.version>2.32.0</errorprone.version>
+    <errorprone.version>2.34.0</errorprone.version>
     <auto-value.version>1.9</auto-value.version>
     <auto-service.version>1.0.1</auto-service.version>
     <maven-javadoc-plugin.version>3.6.3</maven-javadoc-plugin.version>
@@ -196,6 +196,7 @@
           <compilerArgs>
             <!-- compile-time arguments for google-java-format -->
             <arg>-XDcompilePolicy=simple</arg>
+            <arg>--should-stop=ifError=FLOW</arg>
             <arg>-Xplugin:ErrorProne</arg>
             <arg>--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
             <arg>--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>