aboutsummaryrefslogtreecommitdiffstats
path: root/tests/options/deprecated/WarnDeprecated.java
blob: ac2a022261881d230cb222ee97e81d490abf2ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
public class WarnDeprecated {

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