Skip to content

Tweaks for PostConstruct/PreDestory changes #75

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

Merged
merged 2 commits into from
Nov 2, 2020

Conversation

norrisjeremy
Copy link
Contributor

  1. Allow PostConstruct/PreDestory annotations from other packages.
  2. Remove javax.annotation-api dependency since it is no longer strictly required.

@rbygrave
Copy link
Contributor

rbygrave commented Nov 2, 2020

Excellent, thanks for that.

@@ -264,14 +264,12 @@ private void readMethod(Element element, boolean factory) {
}
}

if (context.isPostConstructAvailable()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for spotting that ... ah, tests passed because it was still in the classpath - nice !!

@rbygrave rbygrave added this to the 2.1 milestone Nov 2, 2020
@rbygrave rbygrave merged commit 2227272 into avaje:master Nov 2, 2020
@norrisjeremy norrisjeremy deleted the optional-annotation-api branch November 2, 2020 20:14
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.

2 participants