Skip to content

org.openrewrite.java.migrate.lombok.LombokValToFinalVar does not clean up imports #539

@blipper

Description

@blipper

What is the smallest, simplest way to reproduce the problem?

import lombok.val;

class A {
    void foo(String bar) {
        final val expected = 123456789L;
    }
}

What did you expect to see?

class A {
    void foo(String bar) {
        final var expected = 123456789L;
    }
}

What did you see instead?

import lombok.val;

class A {
    void foo(String bar) {
        final var expected = 123456789L;
    }
}

https://github.com/openrewrite/rewrite-migrate-java/blob/main/src/main/java/org/openrewrite/java/migrate/lombok/LombokValToFinalVar.java doesn't clean up the removal?

Are you interested in contributing a fix to OpenRewrite?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions