From 68838e4315dc9d22d61241c3f56701f8413b3c4c Mon Sep 17 00:00:00 2001 From: timo <1398557+timo-a@users.noreply.github.com> Date: Tue, 24 Dec 2024 12:59:46 +0100 Subject: [PATCH] add test for empty class --- .../lombok/NegligentlyConvertEqualsTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/test/java/org/openrewrite/java/migrate/lombok/NegligentlyConvertEqualsTest.java b/src/test/java/org/openrewrite/java/migrate/lombok/NegligentlyConvertEqualsTest.java index e9ebfd4c8..79f74cc88 100644 --- a/src/test/java/org/openrewrite/java/migrate/lombok/NegligentlyConvertEqualsTest.java +++ b/src/test/java/org/openrewrite/java/migrate/lombok/NegligentlyConvertEqualsTest.java @@ -60,6 +60,21 @@ class A { ); } + @Test + void noCostomMethodsNoAnnotation() { + rewriteRun(// language=java + java( + """ + class A { + + int foo; + + } + """ + ) + ); + } + @Test void replaceEqualsInPackage() { rewriteRun(// language=java