You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011 |
- 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;
- }
- }
- }
|