Set the J2clSuppressWarningsGuard to max priority
The suppressions from this guard are already restricted to J2CL-generated code
and should always be applied. At default priority it's currently possible for
another pass to take precedence over a suppression defined here, particularly
if an error belongs to multiple groups.
@@ -53,4 +53,9 @@ public class J2clSuppressWarningsGuard extends DiagnosticGroupWarningsGuard {
boolean isJ2clSource = error.sourceName != null && error.sourceName.endsWith(".java.js");
return isJ2clSource ? super.level(error) /* suppress */ : null /* proceed */;
}
+
+ @Override
+ protected int getPriority() {
+ return Priority.MAX.getValue();
+ }
}
