checker/tests/nullness/flow/Issue341.java
raw| 1 | // Test case for issue #341: |
| 2 | // https://github.com/typetools/checker-framework/issues/341 |
| 3 | |
| 4 | class Test { |
| 5 | |
| 6 | static class Provider { |
| 7 | public final Object get = new Object(); |
| 8 | } |
| 9 | |
| 10 | Object execute(Provider p) { |
| 11 | final Object result; |
| 12 | try { |
| 13 | result = p.get; |
| 14 | } finally { |
| 15 | } |
| 16 | return result; |
| 17 | } |
| 18 | } |