I use jersey clientfor leisure calls. Import for my code:
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;
Everything is working fine. I use Sonarto check the quality of my code.
Sonar shows a serious problem for:
Classes from "com.sun." and the sun. packages should not be used
Is it really bad practice to use classes from the sun?
If so, what are the alternatives?
source
share