What version of OpenRewrite are you using?
I am using
What is the smallest, simplest way to reproduce the problem?
public class A {
private class Sample {
public Long number;
}
private class Inner {
static Sample sample = null;
private Long getNumber() {
return sample.number;
}
}
}
What did you expect to see?
public class A {
private class Sample {
public Long number;
}
private class Inner {
static Sample sample = null;
private Long getNumber() {
return sample.number;
}
}
}
It should not modify the code at all.
What did you see instead?
import lombok.Getter;
public class A {
private class Sample {
@Getter
public Long number;
}
private class Inner {
static Sample sample = null;
}
}