Category
language
Pattern slug
guarded-patterns
Which code is affected?
Old code example
Type of issue
Code doesn't compile
Describe the issue
Old code is tagged as java 8 but the instanceof pattern matching syntax (xx instance of yy var) is only available since java 16
Suggested fix
tag old code as java 16 (17 LTS) or do not use the instanceof pattern matching syntax
JDK version tested
No response
Category
language
Pattern slug
guarded-patterns
Which code is affected?
Old code example
Type of issue
Code doesn't compile
Describe the issue
Old code is tagged as java 8 but the instanceof pattern matching syntax (xx instance of yy var) is only available since java 16
Suggested fix
JDK version tested
No response