langtools/test/tools/javac/warnings/suppress/pack/ImplicitMain.java
author jlahoda
Mon, 16 Sep 2013 14:13:44 +0200
changeset 19942 e9dae0e41075
permissions -rw-r--r--
8021112: Spurious unchecked warning reported by javac 6480588: No way to suppress deprecation warnings when implementing deprecated interface Summary: Fixing DeferredLintHandler configuration, so lint warnings are reported with correct @SuppressWarnings settings Reviewed-by: jjg, vromero
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19942
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
     1
/* /nodynamiccopyright/ */
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
     2
package pack;
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
     3
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
     4
@SuppressWarnings("deprecation")
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
     5
public class ImplicitMain {
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
     6
    private Object test() {
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
     7
        return new ImplicitUse();
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
     8
    }
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
     9
}
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
    10
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
    11
@Deprecated
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
    12
class Dep {
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
    13
e9dae0e41075 8021112: Spurious unchecked warning reported by javac
jlahoda
parents:
diff changeset
    14
}