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

Enforce type safety for ExtensionNamedWriteableRegistry #203

Merged
merged 3 commits into from
Oct 26, 2022

Conversation

mloufra
Copy link
Contributor

@mloufra mloufra commented Oct 25, 2022

Signed-off-by: mloufra mloufra@amazon.com

Description

Add generic type for categoryClass in ExtensionNamedWriteableRegistry and TestNamedWriteableRegistryAPI
Equivalent PR on OpenSearch: opensearch-project/OpenSearch#4923

Issues Resolved

#130

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: mloufra <mloufra@amazon.com>
Copy link
Member

@dbwiddis dbwiddis left a comment

Choose a reason for hiding this comment

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

Looking good! One minor nit.

Signed-off-by: mloufra <mloufra@amazon.com>
Copy link
Member

@dbwiddis dbwiddis left a comment

Choose a reason for hiding this comment

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

You only need to suppress an unchecked cast when you actually cast. After updating to the maven local you didn't need to cast any more, so you don't need to suppress any more either!

Signed-off-by: mloufra <mloufra@amazon.com>
@owaiskazi19 owaiskazi19 merged commit 35f8d2b into opensearch-project:main Oct 26, 2022
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 17, 2023
…roject#203)

* add generic type

Signed-off-by: mloufra <mloufra@amazon.com>

* move @SuppressWarnings at lowest scope possible

Signed-off-by: mloufra <mloufra@amazon.com>

* remove @SuppressWarnings

Signed-off-by: mloufra <mloufra@amazon.com>

Signed-off-by: mloufra <mloufra@amazon.com>
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.

3 participants