Skip to content

Enforce type safety for ExtensionNamedWriteableRegistry#203

Merged
owaiskazi19 merged 3 commits intoopensearch-project:mainfrom
mloufra:cleanupwarning
Oct 26, 2022
Merged

Enforce type safety for ExtensionNamedWriteableRegistry#203
owaiskazi19 merged 3 commits intoopensearch-project:mainfrom
mloufra:cleanupwarning

Conversation

@mloufra
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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>
caokyhieu pushed a commit to caokyhieu/opensearch-sdk-java that referenced this pull request Aug 15, 2025
…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