[Fixes #2349] Support for JDK 14

Added the ability to parse and pretty-print the new 'x instanceof String y' pattern concept.
Added a test to the pretty printer to confirm that it works.
This commit is contained in:
Reinier Zwitserloot committed 2020-01-29 03:07:21 +01:00
1 parent e95680a767
commit 229cde2bf0
4 files changed
+30 -2

No files matched your search

@@ -0,0 +1,8 @@
// version 14:
public class PatternInstanceOf {
public void foo(Object o) {
if (o instanceof String y) {
System.out.println(y);
}
}
}