auth0 / auth0-java

Java client library for the Auth0 platform
https://auth0.com
MIT License
295 stars 130 forks source link

remove warning for untyped requests #385

Closed pelletier197 closed 2 years ago

pelletier197 commented 3 years ago

Changes

Please describe both what is changing and why this is important. Include:

I Added specific typing for void requests. This is important because first, IDEs usually give warnings when an object's type is not specified. It does not do anything at runtime because of type-erasure, but it makes it impossible for the IDE to know what is supposed to come out of that object.

image

This causes a small inconvenience when using the library. In my case, I wrapped the auth0 library with custom code that handles Rate-limiting better and automatically execute requests, which is why the dynamic typing is needed.

image

I was therefore forced to specify myself the Any type (because the library doesn't specify the Void)

image

Testing

Does not impact tests. It just removes warnings.

Checklist