Code Quality Issue (@ProviderType should not be extended by custom code)
Hi All,
We are getting Critical code quality Issues in Code quality Pipleline.
The product class javax.json.spi.JsonProvider annotated with @ProviderType should not be extended by custom code. Detected in org.apache.johnzon.core.JsonProviderImpl contained in /apps/<project-name>-vendor-packages/application/install/org.apache.sling.commons.johnzon-1.2.14.jar.(CQRules:CQBP-84).
I have added the below dependency in all pom.xml.
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.commons.johnzon</artifactId>
<target>/apps/<project-name>-vendor-packages/application/install</target>
</dependency>
The product interface org.apache.sling.caconfig.management.multiplexer.ConfigurationResourceResolvingStrategyMultiplexer annotated with @ProviderType should not be implemented by custom code. Detected in org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolvingStrategyMultiplexerImpl contained in /apps/<project-name>-vendor-packages/application/install/org.apache.sling.caconfig.impl-1.6.0.jar.
How to fix such issues.