Merge pull request #13769 from atorralba/atorralba/java/avoid-inputstream-low-confidence-dispatch

Java: Avoid low-confidence dispatch to InputStream methods
This commit is contained in:
Tony Torralba
2023-07-21 10:42:34 +02:00
committed by GitHub
3 changed files with 8 additions and 0 deletions

View File

@@ -102,6 +102,8 @@ private module Dispatch {
or
t instanceof Interface and not t.fromSource()
or
t.hasQualifiedName("java.io", "InputStream")
or
t.hasQualifiedName("java.io", "Serializable")
or
t.hasQualifiedName("java.lang", "Iterable")