aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2021-02-07 21:22:07 +0100
committerRawi01 <Rawi01@users.noreply.github.com>2021-02-07 21:23:21 +0100
commitd42a6fe40eacd8aca9697adda0eed61f66ab7d6c (patch)
treeaf7b43adec646dbc7e3ab019b7295683fc839890 /src/core/lombok/javac
parented4ced1a3bc694f9a9903b5a15b2641236ff2f92 (diff)
downloadlombok-d42a6fe40eacd8aca9697adda0eed61f66ab7d6c.tar.gz
lombok-d42a6fe40eacd8aca9697adda0eed61f66ab7d6c.tar.bz2
lombok-d42a6fe40eacd8aca9697adda0eed61f66ab7d6c.zip
[fixes #2741] Handle inner method invocations first
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r--src/core/lombok/javac/handlers/HandleExtensionMethod.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleExtensionMethod.java b/src/core/lombok/javac/handlers/HandleExtensionMethod.java
index bda8c93a..8d42a82d 100644
--- a/src/core/lombok/javac/handlers/HandleExtensionMethod.java
+++ b/src/core/lombok/javac/handlers/HandleExtensionMethod.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012-2014 The Project Lombok Authors.
+ * Copyright (C) 2012-2021 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -152,8 +152,9 @@ public class HandleExtensionMethod extends JavacAnnotationHandler<ExtensionMetho
@Override
public Void visitMethodInvocation(final MethodInvocationTree tree, final Void p) {
+ super.visitMethodInvocation(tree, p);
handleMethodCall((JCMethodInvocation) tree);
- return super.visitMethodInvocation(tree, p);
+ return null;
}
private void handleMethodCall(final JCMethodInvocation methodCall) {