blob: a6ae232d7d48ba5280cf9b3077e2d8235ed35564 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
public class TypeAnnoOnInstanceOf {
public void m() {
Object o = "abc";
if (o instanceof @Anno(1) String) {
String s = (String) o;
}
if (o instanceof @Anno(1) Integer) {
Integer s = (Integer) o;
}
}
}
|