equal
deleted
inserted
replaced
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 // key: compiler.err.string.switch.not.supported.in.source |
24 // key: compiler.err.string.switch.not.supported.in.source |
25 // options: -source 6 |
25 // options: -source 6 -Xlint:-options |
26 |
26 |
27 class StringSwitchNotSupported { |
27 class StringSwitchNotSupported { |
28 int m(String s) { |
28 int m(String s) { |
29 switch (s) { |
29 switch (s) { |
30 case "one": return 1; |
30 case "one": return 1; |