From 7af752602af4cab91bb6929c9a9b4d93babd629c Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Sun, 30 Jan 2022 00:22:36 +0100 Subject: [fixes #3097] Update inner class type when creating a static class --- test/transform/resource/after-delombok/UtilityClass.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/transform/resource/after-delombok') diff --git a/test/transform/resource/after-delombok/UtilityClass.java b/test/transform/resource/after-delombok/UtilityClass.java index 8d3f4c08..1d541b6e 100644 --- a/test/transform/resource/after-delombok/UtilityClass.java +++ b/test/transform/resource/after-delombok/UtilityClass.java @@ -2,10 +2,15 @@ final class UtilityClass { private static long someField = System.currentTimeMillis(); static void someMethod() { System.out.println(); + new InnerClass(); + new InnerStaticClass(); } protected static class InnerClass { private String innerInnerMember; } + protected static class InnerStaticClass { + private String innerInnerMember; + } @java.lang.SuppressWarnings("all") private UtilityClass() { throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); -- cgit