Skip to content

Errors once type hiding removed #66

@davidmoten

Description

@davidmoten

This method in BaseCollectionRequest<T1, T2> is hiding types:

@SuppressWarnings("unchecked")
protected <T1, T2> T1 post(final T2 serializedObject) throws ClientException {
        baseRequest.setHttpMethod(HttpMethod.POST);
    return (T1) baseRequest.getClient().getHttpProvider().send(this, responseClass, serializedObject);
}

When the <T1, T2> is removed from the post method a number of collection related compile errors turn up. This may indicate bugs (ClassCastExceptions) waiting for a user to hit those methods.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions