Java: Collections.emptyMap() casting

When using the constant Collections.EMPTY_MAPCollections.EMPTY_MAP Java always complains about "Type Safety" and "Uncchecked conversions". Well something I did not know was that methods can be paramterized like this: Collections.<String, Long> emptyMap()Collections.<String, Long> emptyMap() Of course this works for other methods as well.