title: How do I get more warnings from javac?
body: <p>I want the Java compiler to give me the highest level of warnings possible. Currently I compile with -Xlint. Is there anyway for me to get more warnings? The warnings provided by Xlint seem paltry.</p>
  
  <p>I just compiled this code with -Xlint and got no warnings:</p>
  
  <pre><code>double x = 22/7;
  double y = 22/7;
  
  if(x == y) {
    System.err.println("They are equal!");
  }
  </code></pre>
  
  <p>If I did this in C++ and compiled using gcc with the option -Wfloat-equal, the compiler would issue a warning. Java issues no warning whatsoever. I am using Java 6.</p>