Skip to content

[Code Issue] Patterns avec gardes when #142

@foilivier

Description

@foilivier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingslugNew or updated pattern snippet (category/slug.json)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions