Debian Codegraph @

framework/tests/all-systems/Issue457.java

raw
1 // See gist: https://gist.github.com/JonathanBurke/6c1c1c28161a451611ad
2 // for more information on what was going wrong here
3 class Issue457<T extends Number> {
4
5 @SuppressWarnings("unused")
6 public void f(T t) {
7 final T obj = t;
8
9 Float objFloat = (obj instanceof Float) ? (Float) obj : null;
10
11 // An error will be emitted on this line before the fix for Issue457
12 t = obj;
13 }
14 }