Skip to content

Support Lombok Annotations #1297

@hetzijzo

Description

@hetzijzo

org.openrewrite.java.cleanup.ExplicitInitialization and org.openrewrite.java.cleanup.UseDiamondOperator removes the argument type when it's a lombok.val variable.

val products = new ArrayList<Product>();

val products = new ArrayList<>();

which is incorrect and doesn't compile anymore.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions