checker/tests/nullness/flow/PathJoins.java
raw| 1 | import org.checkerframework.checker.nullness.qual.*; |
| 2 | |
| 3 | public class PathJoins { |
| 4 | |
| 5 | public void testJoiningMultipleBranches() { |
| 6 | Object intersect = null; |
| 7 | if (false) { |
| 8 | return; |
| 9 | } else if (intersect == null) { |
| 10 | return; |
| 11 | } else { |
| 12 | intersect = "m"; |
| 13 | } |
| 14 | |
| 15 | intersect.toString(); |
| 16 | } |
| 17 | } |