equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
22 */ |
22 */ |
23 |
23 |
24 // key: compiler.err.rule.completes.normally |
24 // key: compiler.err.rule.completes.normally |
25 // key: compiler.note.preview.filename |
25 // key: compiler.note.preview.filename |
26 // key: compiler.note.preview.recompile |
26 // key: compiler.note.preview.recompile |
27 // options: --enable-preview -source 13 |
27 // options: --enable-preview -source ${jdk.version} |
28 |
28 |
29 class RuleCompletesNormally { |
29 class RuleCompletesNormally { |
30 public String convert(int i) { |
30 public String convert(int i) { |
31 return switch (i) { |
31 return switch (i) { |
32 default -> {} |
32 default -> {} |