Closed kenfinnigan closed 5 years ago
@kenfinnigan Good catch. Should we also remove the @Provider
annotation from InjectedSimpleFeature
? IIUC, the annotation is also unnecessary because the FeatureProviderClient
interface has this annotation: @RegisterProvider(InjectedSimpleFeature.class)
wdyt?
We could do that too
would you like that in these PRs too?
Yeah, that would probably be simplest. If you'd rather do them in separate PRs though, that's fine too. Thanks for catching this.
@andymc12 I've updated both PRs
SimpleFeature currently has
@Provider
present on it which results in it being auto-discovered in the CDI injection test.Depending on the order the tests are executed this can lead to issues whereby the RestClientBuilder believes the provider is already registered.
It's safer to not have the
@Provider
annotation and just register it manually.