mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
Java: add test case for yml model
This commit is contained in:
@@ -44,6 +44,9 @@ public class Test {
|
||||
Exception e4 = new IllegalStateException((String)source());
|
||||
sink((String)e4.getMessage()); // $hasValueFlow
|
||||
|
||||
Exception e5 = new UnsupportedOperationException((String)source());
|
||||
sink((String)e5.getMessage()); // $hasValueFlow
|
||||
|
||||
Throwable t = new Throwable((Throwable)source());
|
||||
sink((Throwable)t.getCause()); // $hasValueFlow
|
||||
|
||||
|
||||
Reference in New Issue
Block a user