Method argument inference?

Florian Weimer fw at
Sun Sep 20 21:58:28 PDT 2009

* John Hendrikx:

> This gets flagged as a warning by the compiler, as it cannot infer the 
> type from the method parameters.  The code below is warning free however 
> with an unnecessary intermediate assignment:
>   Set<String> emptySet = Collections.emptySet();
>   dealWithStringSet(emptySet);

FWIW, you can also use:


More information about the coin-dev mailing list