Skip to content
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

Template deprecation warnings suppression #4853

Merged
merged 1 commit into from
Oct 25, 2019
Merged

Template deprecation warnings suppression #4853

merged 1 commit into from
Oct 25, 2019

Conversation

rsvoboda
Copy link
Member

Template deprecation warnings suppression.

Template class is deprecated, there is some logic to do the fallback to Recorder behavior.

@@ -530,7 +531,7 @@ private static boolean isRecorder(AnnotatedElement element) {
if (isRecorder) {
boolean recorderFound = false;
for (Class<?> p : method.getParameterTypes()) {
if (p.isAnnotationPresent(Recorder.class) || p.isAnnotationPresent(Template.class)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this change related to suppressing deprecation warnings?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's related because it uses the isRecorder method above which has the suppress warning.

@gsmet gsmet merged commit 0780b64 into quarkusio:master Oct 25, 2019
@gsmet
Copy link
Member

gsmet commented Oct 25, 2019

Thanks!

@geoand geoand added this to the 0.27.0 milestone Oct 25, 2019
@rsvoboda rsvoboda deleted the Template.deprecation.warning.supress branch March 4, 2021 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants