mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-16 06:19:49 +00:00
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.
9 lines
143 B
Java
9 lines
143 B
Java
// version 14:
|
|
public class PatternInstanceOf {
|
|
public void foo(Object o) {
|
|
if (o instanceof String y) {
|
|
System.out.println(y);
|
|
}
|
|
}
|
|
}
|