Skip to content

Support Java14 instanceof pattern matching #214

@marek-parfianowicz

Description

@marek-parfianowicz

Java 14 introduced pattern matching for instanceof keyword, which allows to create a variable for the type matched, without type casting. Example:

int sum = 0; if (o instanceof Integer i) { sum += i; }

To be implemented: optional identifier after type declaration.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions