Using JCodeModel, SonarLint reports classes from "sun.*" packages should not be used

226 Views Asked by At

I am trying to use com.sun.codemodel.JCodeModel in some code that is generating Java Pojo classes from JSON schemas but SonarLint is reporting that classes from "sun.*" packages should not be used. Is there any replacement for JCodeModel in a different package that is compliant?

1

There are 1 best solutions below

0
On

Although this other thread link says that you shouldn't restrictedly believe in Sonar evaluation, I found this option that you should consider: Apache JAXBUtils