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

Add String- and Class-accepting shortcuts #252

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

Ladicek
Copy link
Collaborator

@Ladicek Ladicek commented Sep 1, 2022

In Jandex 3.0.0, we added shortcut methods to IndexView so that users
don't have to always create an instance of DotName. These methods
accept String (which is wrapped into DotName) and even Class<?>
(whose getName() is wrapped into DotName).

In this commit, we add similar shortcuts to DotName.createSimple()
and all annotation access methods on AnnotationTarget.

In Jandex 3.0.0, we added shortcut methods to `IndexView` so that users
don't have to always create an instance of `DotName`. These methods
accept `String` (which is wrapped into `DotName`) and even `Class<?>`
(whose `getName()` is wrapped into `DotName`).

In this commit, we add similar shortcuts to `DotName.createSimple()`
and all annotation access methods on `AnnotationTarget`.
@Ladicek Ladicek added this to the 3.0.1 milestone Sep 1, 2022
@Ladicek Ladicek merged commit 35b6577 into smallrye:main Sep 1, 2022
@Ladicek Ladicek deleted the annotation-dotname-shortcuts branch September 1, 2022 10:29
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.

None yet

1 participant