-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Apache HttpClient plugin to indy plugin #1349
Migrate Apache HttpClient plugin to indy plugin #1349
Conversation
@@ -448,7 +448,7 @@ private static void validateAdvice(Class<?> adviceClass) { | |||
} | |||
for (MethodDescription.InDefinedShape exitAdvice : typeDescription.getDeclaredMethods().filter(isStatic().and(isAnnotatedWith(Advice.OnMethodExit.class)))) { | |||
validateAdviceReturnAndParameterTypes(exitAdvice); | |||
if (exitAdvice.getReturnType().getTypeName().startsWith("co.elastic.apm")) { | |||
if (exitAdvice.getReturnType().asRawType().getTypeName().startsWith("co.elastic.apm")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[question] why do we have to use raw type here ? maybe add a small comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to avoid that the type gets resolved (leading to exceptions). That part of the code will change once we merge in the changes you made for WebFlux. So adding a comment would make merging trickier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking care of making other's PRs easier to merge !!
does what it says on the tin
relates to #1337