title: Classes from "com.sun.*" and "sun.*" packages should not be used Sonar issue for Jersey client
body: <p>I am using <code>jersey client</code> for rest calls. Imports for my code are:</p>
  
  <pre><code>import com.sun.jersey.api.client.Client;
  import com.sun.jersey.api.client.ClientResponse;
  import com.sun.jersey.api.client.WebResource;
  </code></pre>
  
  <p>Everything is working fine. I am using <code>Sonar</code> for checking my Code quality.</p>
  
  <p>sonar is showing a major issue for:</p>
  
  <blockquote>
    <p>Classes from "com.sun.<em>" and "sun.</em>" packages should not be used</p>
  </blockquote>
  
  <p>Is this actually bad practice to use classes from sun?</p>
  
  <p>If yes, what are the alternatives?</p>