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

Backport some Jandex 3.0 methods to 2.4 #237

Merged
merged 1 commit into from
Jun 27, 2022

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented Jun 27, 2022

This commit adds the following methods:

  • ClassInfo.annotationsMap()
    • equivalent of ClassInfo.annotations()
  • MethodInfo.parameterTypes()
    • equivalent of MethodInfo.parameters()
  • MethodInfo.parameterType(int)
    • equivalent of MethodInfo.parameters().get(index),
      similar to MethodInfo.parameterName(int)
  • MethodInfo.parametersCount()
    • equivalent of MethodInfo.parameters().size()

Additionally, this commit deprecates the following methods:

  • ClassInfo.annotations()
  • MethodInfo.parameters()

This is all done to facilitate migration from Jandex 2.4 to 3.0,
where the 2 deprecated methods have a different return type.

This commit adds the following methods:

- `ClassInfo.annotationsMap()`
  - equivalent of `ClassInfo.annotations()`
- `MethodInfo.parameterTypes()`
  - equivalent of `MethodInfo.parameters()`
- `MethodInfo.parameterType(int)`
  - equivalent of `MethodInfo.parameters().get(index)`,
    similar to `MethodInfo.parameterName(int)`
- `MethodInfo.parametersCount()`
  - equivalent of `MethodInfo.parameters().size()`

Additionally, this commit deprecates the following methods:

- `ClassInfo.annotations()`
- `MethodInfo.parameters()`

This is all done to facilitate migration from Jandex 2.4 to 3.0,
where the 2 deprecated methods have a different return type.
@Ladicek Ladicek added this to the 2.4.3.Final milestone Jun 27, 2022
@Ladicek Ladicek merged commit 8de28f1 into smallrye:2.4 Jun 27, 2022
@Ladicek Ladicek deleted the backport-3.0-methods-to-2.4 branch June 27, 2022 12:42
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.

1 participant