mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 12:19:00 +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.
8 lines
128 B
Java
8 lines
128 B
Java
public class PatternInstanceOf {
|
|
public void foo(Object o) {
|
|
if (o instanceof String y) {
|
|
System.out.println(y);
|
|
}
|
|
}
|
|
}
|