Java: enable local call characteristic also for source candidates

This commit is contained in:
Stephan Brandauer
2023-09-05 16:50:06 +02:00
parent afc5aedd0a
commit 344aa9cb6b
3 changed files with 3 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ class Test {
}
public static InputStream getInputStream(String openPath) throws Exception {
return Test.getInputStream( // the call is a source candidate
return Test.getInputStream( // the call is not a source candidate (argument to local call)
Paths.get(openPath) // no sink candidate (argument to local call); the call is a source candidate
);
}