title: Remove Compile-Time warnings about unchecked operations
body: <p>The following line causes compile time warnings:</p>
  
  <pre><code>ArrayList&lt;Integer&gt; a = (ArrayList) b.clone();
  </code></pre>
  
  <p>creates:</p>
  
  <pre><code>Note: MyClass.java uses unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  </code></pre>
  
  <p>How do I remove the compile-time warnings? -Xlint:none and -nowarn do not seem to help.</p>
  
  <p><strong>Edit</strong>: I don't really care too much about being typesafe; in the context of the code, I'm sure that the types will work. I just want to suppress the compiler warnings.</p>