Disable PatternMatchingInstanceof error prone check am: 32845c48f3

Original change: https://android-review.googlesource.com/c/platform/external/error_prone/+/3314850

Change-Id: Ib7c67259d323c500715be15ed00892ebbae54569
Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/soong/error_prone.go b/soong/error_prone.go
index ab38e6a..20e74e7 100644
--- a/soong/error_prone.go
+++ b/soong/error_prone.go
@@ -154,6 +154,9 @@
 		// requirement. The warning is overtriggered when source depends on the API stubs, which
 		// may not include the toString() method.
 		"-Xep:ObjectToString:OFF",
+		// Disable the check which is introduced by the Java target 21 until modules 
+		// can be fixed individually (b/377918299).
+		"-Xep:PatternMatchingInstanceof:OFF",
 	}
 
 	config.ErrorProneFlags = []string{