mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 16:17:34 +00:00
[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:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user