Java: Avoid low-confidence dispatch to InputStream methods

Also adds a neutral model for `InputStream.read`, which offers a high-confidence alternative for this method.
This commit is contained in:
Tony Torralba
2023-07-19 11:30:44 +02:00
parent 8a46ff344a
commit 2dbbcc2413
2 changed files with 3 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")