Skip to content

Commit

Permalink
No need to add unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 15, 2024
1 parent d1670e6 commit 9da51eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public J.CompilationUnit visitCompilationUnit(J.CompilationUnit cu, ExecutionCon
if (type instanceof JavaType.FullyQualified) {
JavaType.FullyQualified ref = (JavaType.FullyQualified) type;
if ("Record".equals(ref.getClassName()) && !ref.getPackageName().startsWith("java.lang")) {
maybeAddImport(ref.getFullyQualifiedName(), false);
maybeAddImport(ref.getFullyQualifiedName());
}
}
}
Expand Down

0 comments on commit 9da51eb

Please sign in to comment.