title: Java 8 cyclic inference warning
body: <p>My knowledge about list operations is from scripting languages. So in Java I stopped on something strange in case of finding cookie with particular name.</p>
  
  <pre><code>List&lt;Cookie&gt; cookies = Arrays.asList(request.getCookies());
          String auth = cookies.stream()
                  .filter(c -&gt; c.getName().equals("auth"))
                  .map(Cookie::getValue);
  </code></pre>
  
  <p>On the <code>map</code> method IntelliJ is showing me "Cyclic inference". </p>
  
  <blockquote>
    <p>Java compiler Error:(52, 25) java: incompatible types: no instance(s) of type variable(s) R exist so that java.util.stream.Stream conforms to java.lang.String</p>
  </blockquote>