Skip to content

Move Selector filtering API example makes raw use of a parameterised class #2294

Description

@MarkRdgOx

Describe the bug
In section 1.5.4 of Move Selector Reference, under the header Filtered Move Selection, the definition of the class DifferentCourseSwapMoveFilter has it extend SelectionFilter<CourseSchedule, SwapMove>. SwapMove is a parameterised class and its type parameters are missing in this example. In Java, this will work but is considered unsafe and will generate a lint warning on several IDEs. If used in equivalent Kotlin code, it is banned.

Expected content
The type should be listed as SelectionFilter<CourseSchedule,SwapMove<CourseSchedule,Lecture>> in order to provide the parameters, or a warning should be attached to the example about the raw use of a parameterised class.

Metadata

Metadata

Assignees

Labels

component/docsImprovements or additions to documentation

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions