As Commented…
For any javax
package, ask yourself if that class is from one of the Jakarta EE libraries? When you look up the latest Javadoc, does that page reside at the Jakarta EE web site?
If so, change the package name to that which is documented. If not, leave the javax
package as-is.
Java still has many packages in the javax
namespace. This x
naming is a leftover from older development practices during the early Sun Microsystems days of Java’s history.
The package javax.net.ssl
is still a part of the current Java release, Java 20. Not in Jakarta EE.
The first versions of Jakarta EE did use the javax.*
package naming, as part of a transition when Oracle Corp handed over Java EE to the Eclipse Foundation. My Answer here assumes you have moved on to the later versions of Jakarta EE that now use jakarta.*
packages.