title: javac "uses unchecked or unsafe operations" when the type is being specified
body: <p>The following code:</p>
  
  <pre><code>public void addGrillaListener(Stage stageToClose,Grilla listener)
  {
      GrillaHandler&lt;WindowEvent&gt; handy = new GrillaHandler&lt;&gt;(listener);
      if(stageToClose!=null)
      {
          stageToClose.addEventHandler(WindowEvent.WINDOW_HIDDEN,handy);
      }
  }
  </code></pre>
  
  <p>causes the compiler to show that message. How can I avoid it?</p>
  
  <p>Extra info: </p>
  
  <ul>
  <li>Grilla is a Stage interface                                                                                                                         </li>
  <li>GrillaHandler is a EventHandler subclass that takes a Grilla as a constructor parameter                                                        </li>
  <li>Using JDK 7, GrillaHandler&lt;> is allowed</li>
  <li>The compiler message is rather unespecific - it states that this method uses unchecked or  unsafe operations</li>
  <li>Stage is a class provided by oracle, it's part of javafx</li>
  </ul>
  
  <p>GrillaHandler:</p>
  
  <pre><code>public class GrillaHandler&lt;T&gt; implements EventHandler {
  
      private Grilla win;
  
      public GrillaHandler(Grilla win) {
          this.win=win;
      }
  
      @Override
      public void handle(Event t) {
          win.loadTable();
      }
  }
  </code></pre>
  
  <p>Grilla:</p>
  
  <pre><code>public interface Grilla { 
      public void loadTable();
  }
  </code></pre>