title: How to create a synchronized multimap with Guava in one line?
body: <p>This works:</p>
  
  <pre><code>Multimap&lt;String, String&gt; m = HashMultimap.create();
  </code></pre>
  
  <p>Also this works:</p>
  
  <pre><code>Multimap&lt;String, String&gt; m = HashMultimap.create();
  Multimap&lt;String, String&gt; n = Multimaps.synchronizedMultimap(m);
  </code></pre>
  
  <p>But why does this not work?</p>
  
  <pre><code>Multimap&lt;String, String&gt; n = Multimaps.synchronizedMultimap(HashMultimap.create());
  </code></pre>
  
  <p>I get an error:</p>
  
  <blockquote>
    <p>Type mismatch: cannot convert from Multimap Object,Object to 
     Multimap String,String </p>
  </blockquote>
  
  <p>I tried to add the &lt;> in many places but had no success. What do I do wrong?</p>
  
  <p>I am still stuck with Java 7.</p>