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.

WarnDeprecated.java 493B

123456789101112131415161718
  1. public class WarnDeprecated {
  2. /** */
  3. public static void main(String[] args) {
  4. if (null == args) {
  5. OldStuff.foo(); // CE 10 deprecated if warn:deprecated
  6. // This is only picked up as a deprecation error when compiling against developer
  7. // libraries, it will be ignored if compiling against the user jre libraries.
  8. // We're not going to include this in the test suite for robustness of the suite.
  9. //"hello".getBytes(0, 1, new byte[10], 0);
  10. }
  11. }
  12. }