ElidedSemicolonAndRightBrace expected : <p>I have the following code ("codes" is an array variable):</p>

<pre><code>Arrays.asList(codes)
        .stream()
        .filter(code -&gt; code.hasCountries())
        .sorted()
        .toArray()
        );
</code></pre>

<p>The compiler gives me the following error:</p>

<blockquote>
  <p>Syntax error on token ")", ElidedSemicolonAndRightBrace expected</p>
</blockquote>

<p>What's wrong here?</p>
