From 5835e5d19fd4b22c88fbb8d304858786b060fe71 Mon Sep 17 00:00:00 2001 From: Marc Guenther Date: Wed, 14 Sep 2022 22:15:01 +0200 Subject: fixes ...: allow @ExtensionMethod on interfaces --- src/core/lombok/javac/handlers/JavacHandlerUtil.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/lombok/javac/handlers/JavacHandlerUtil.java') diff --git a/src/core/lombok/javac/handlers/JavacHandlerUtil.java b/src/core/lombok/javac/handlers/JavacHandlerUtil.java index b17e34d8..9d153a72 100644 --- a/src/core/lombok/javac/handlers/JavacHandlerUtil.java +++ b/src/core/lombok/javac/handlers/JavacHandlerUtil.java @@ -2069,6 +2069,10 @@ public class JavacHandlerUtil { return isClassAndDoesNotHaveFlags(typeNode, Flags.INTERFACE | Flags.ANNOTATION | RECORD); } + public static boolean isClassOrEnumOrInterface(JavacNode typeNode) { + return isClassAndDoesNotHaveFlags(typeNode, Flags.ANNOTATION | RECORD); + } + /** * Returns {@code true} if the provided node is an actual class, an enum or a record and not some other type declaration (so, not an annotation definition or interface). */ -- cgit