diff --git a/android/pom.xml b/android/pom.xml
index c4c5d7baa2f8..bdeb5c35fa58 100644
--- a/android/pom.xml
+++ b/android/pom.xml
@@ -135,16 +135,22 @@
doesnotexist
-XDcompilePolicy=simple
- -Xplugin:ErrorProne
+
com.google.errorprone
error_prone_core
-
- 2.10.0
+ 2.16
+
+ true
@@ -439,9 +445,8 @@
-
- jdk8
+ javac9-for-jdk8
1.8
@@ -451,7 +456,26 @@
org.apache.maven.plugins
maven-compiler-plugin
- true
+
-J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar
@@ -460,5 +484,48 @@
+
+ new-enough-for-error-prone
+
+ [9,)
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+
+
+ -Xplugin:ErrorProne -Xep:NullArgumentForNonNullParameter:OFF
+
+
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
+ -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
+ -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 826f05864dd2..ab84d3f8cd39 100644
--- a/pom.xml
+++ b/pom.xml
@@ -136,16 +136,22 @@
doesnotexist
-XDcompilePolicy=simple
- -Xplugin:ErrorProne
+
com.google.errorprone
error_prone_core
-
- 2.10.0
+ 2.16
+
+ true
@@ -446,9 +452,8 @@
-
- jdk8
+ javac9-for-jdk8
1.8
@@ -458,7 +463,26 @@
org.apache.maven.plugins
maven-compiler-plugin
- true
+
-J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar
@@ -467,5 +491,48 @@
+
+ new-enough-for-error-prone
+
+ [9,)
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+
+
+ -Xplugin:ErrorProne -Xep:NullArgumentForNonNullParameter:OFF
+
+
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
+ -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
+ -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
+
+
+
+
+
+