diff --git a/rewrite-java/src/main/java/org/openrewrite/java/tree/J.java b/rewrite-java/src/main/java/org/openrewrite/java/tree/J.java index 20738e59f5c..acc5487e4c3 100644 --- a/rewrite-java/src/main/java/org/openrewrite/java/tree/J.java +++ b/rewrite-java/src/main/java/org/openrewrite/java/tree/J.java @@ -3360,7 +3360,7 @@ public String toString() { @EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true) @RequiredArgsConstructor @AllArgsConstructor(access = AccessLevel.PRIVATE) - final class MemberReference implements J, Expression, TypedTree, MethodCall { + final class MemberReference implements J, TypedTree, MethodCall { @Nullable @NonFinal transient WeakReference padding; @@ -3804,7 +3804,7 @@ public MethodDeclaration withName(IdentifierWithAnnotations name) { @EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true) @RequiredArgsConstructor @AllArgsConstructor(access = AccessLevel.PRIVATE) - final class MethodInvocation implements J, Statement, Expression, TypedTree, MethodCall { + final class MethodInvocation implements J, Statement, TypedTree, MethodCall { @Nullable @NonFinal transient WeakReference padding; @@ -4311,7 +4311,7 @@ public ArrayDimension withIndex(JRightPadded index) { @EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true) @RequiredArgsConstructor @AllArgsConstructor(access = AccessLevel.PRIVATE) - final class NewClass implements J, Statement, Expression, TypedTree, MethodCall { + final class NewClass implements J, Statement, TypedTree, MethodCall { @Nullable @NonFinal transient WeakReference padding;