diff --git a/pom.xml b/pom.xml index 60adb227adc..5f6c754951d 100644 --- a/pom.xml +++ b/pom.xml @@ -1741,7 +1741,13 @@ avoid that, so we simply tell Error Prone not to warn about generated code. --> -XepDisableWarningsInGeneratedCode - -XepExcludedPaths:\Q${project.build.directory}${file.separator}\E.* + + -XepExcludedPaths:(?!.*/src/[^/]+/java/.*).* -Xep:AndroidJdkLibsChecker:OFF