8201498: test/langtools/tools/javac/diags/CheckExamples.java 6 errors occurred

Remove duplicate class names in diagnostic examples.

Reviewed-by: jlahoda
This commit is contained in:
Maurizio Cimadamore 2018-04-13 16:23:56 +01:00
parent 0b6fbf50d2
commit 19581edca2
4 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ import java.util.ArrayList;
class PreviewPlural {
void test() {
new Bar();
new PreviewPluralBar();
new ArrayList<>();
}
}

View File

@ -23,6 +23,6 @@
* questions.
*/
class Bar {
class PreviewPluralBar {
Runnable r = () -> {};
}

View File

@ -30,9 +30,9 @@
import java.util.ArrayList;
class PreviewPlural {
class PreviewPluralAdditional {
void test() {
new Bar();
new PreviewPluralAdditionalBar();
new ArrayList<>();
}
}

View File

@ -25,7 +25,7 @@
import java.util.ArrayList;
class Bar {
class PreviewPluralAdditionalBar {
Runnable r = () -> {};
void test() {
new ArrayList<>();