aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse
diff options
context:
space:
mode:
authorMarc Guenther <marcguenther@me.com>2022-09-14 22:15:01 +0200
committerMarc Guenther <marcguenther@me.com>2022-09-14 22:15:01 +0200
commit5835e5d19fd4b22c88fbb8d304858786b060fe71 (patch)
tree341dfe05e9cd388fff8825a98886e9fbc2b65181 /src/core/lombok/eclipse
parent91a511bbb70564c5b9aa5f7c1fa3dab3de22602b (diff)
downloadlombok-5835e5d19fd4b22c88fbb8d304858786b060fe71.tar.gz
lombok-5835e5d19fd4b22c88fbb8d304858786b060fe71.tar.bz2
lombok-5835e5d19fd4b22c88fbb8d304858786b060fe71.zip
fixes ...: allow @ExtensionMethod on interfaces
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleExtensionMethod.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleExtensionMethod.java b/src/core/lombok/eclipse/handlers/HandleExtensionMethod.java
index 5857780c..b84018c6 100644
--- a/src/core/lombok/eclipse/handlers/HandleExtensionMethod.java
+++ b/src/core/lombok/eclipse/handlers/HandleExtensionMethod.java
@@ -50,10 +50,10 @@ public class HandleExtensionMethod extends EclipseAnnotationHandler<ExtensionMet
int modifiers = typeDecl == null ? 0 : typeDecl.modifiers;
boolean notAClass = (modifiers &
- (ClassFileConstants.AccInterface | ClassFileConstants.AccAnnotation)) != 0;
+ (ClassFileConstants.AccAnnotation)) != 0;
if (typeDecl == null || notAClass) {
- annotationNode.addError("@ExtensionMethod is legal only on classes and enums.");
+ annotationNode.addError("@ExtensionMethod is legal only on classes and enums and interfaces.");
return;
}