Skip to content

withReSchedule should return typed UpdateControl to avoid linter warning #612

Closed
@sclorng

Description

@sclorng

Acutally withReSchedule returns an untyped UpdateControl and this rises linter warning "Type safety: The expression of type UpdateControl needs unchecked conversion to conform to UpdateControlJava(16777748)" (vscode at least).

With :

@Override
public UpdateControl<T> createOrUpdateResource(T resource, Context<T> context) {
    return UpdateControl.updateStatusSubResource(resource)
        .withReSchedule(delay);
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions