Skip to content

Clean up compiler warnings #130

@dbwiddis

Description

@dbwiddis

Some code on main is producing compiler warnings and should be cleaned up so I don't see so many ⚠️s in my IDE.

  • TransportActions.java Class on line 29 needs type arguments. (Class<? extends TransportAction<? extends ActionRequest, ? extends ActionResponse>>>). This will need a simultaneous change to OpenSearch project feature/extensions branch RegisterTransportActionsRequest constructor (and associated instance variable).
  • TransportAction.java HashMap on line 38 needs a diamond operator (<>)
  • NamedWriteableRegistryApi.java lines 84 and 107 need generic types for the Class (probably <? extends NamedWritable>). This will need a simultaneous change to OpenSearch project feature/extensions branch NamedWriteable RegistryParseRequest to change the type of categoryClass to add the same generics.
  • SDKClient.java has an unused logger. Either log something or remove it.
  • TestNamedWriteable.java has an unused inner class constructor Example(String message). I suspect this means there's missing tests somewhere.
  • Unused field extensionsRunner in NettyTransport (probably the result of a merge conflict resolution)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions