title: Eclipse: fixing 'Redundant specification of type arguments' result in an error
body: <p>Eclipse (Oxygen.2) shows the 'Redundant specification of type arguments' warning for the code snippet below. When I fix it, by using <code>new Element&lt;&gt;()</code>, I get a compile time error on the next line, because it doesn't infer the type, it uses <code>Element&lt;Object&gt;</code> instead and the list is <code>Element&lt;A&gt;</code>.</p>
  
  <pre><code>public static void main(String[] args)
  {
    List&lt;Element&lt;A&gt;&gt; list = new ArrayList&lt;&gt;();
    Stream.of("foo", "bar")
      .map(e -&gt; new Element&lt;A&gt;())
      .forEach(list::add);
  }
  
  interface A
  {}
  
  private static class Element&lt;A&gt;
  {
    public Element()
    {}
  }
  </code></pre>
  
  <p>IntelliJ doesn't suggest removing the type. Is this a problem of Eclipse?</p>