diff --git a/rewrite-java/src/main/java/org/openrewrite/java/ChangeType.java b/rewrite-java/src/main/java/org/openrewrite/java/ChangeType.java index e037a700dc6..34b50170947 100644 --- a/rewrite-java/src/main/java/org/openrewrite/java/ChangeType.java +++ b/rewrite-java/src/main/java/org/openrewrite/java/ChangeType.java @@ -430,6 +430,7 @@ private JavaType updateType(@Nullable JavaType oldType) { } else if (oldType instanceof JavaType.FullyQualified) { JavaType.FullyQualified original = TypeUtils.asFullyQualified(oldType); if (isTargetFullyQualifiedType(original)) { + oldNameToChangedType.put(oldType, targetType); return targetType; } } else if (oldType instanceof JavaType.GenericTypeVariable) {