<p>Is there a Generics Friendly way of using Collection.EMPTY_LIST in my Java Program.</p>

<p>I know I could just declare one myself, but I'm just curious to know if there's a way in the JDK to do this.</p>

<p>Something like <code>users = Collections&lt;User&gt;.EMPTY_LIST;</code></p>

By doing the following:
```
```
List<User> users = Collections.emptyList();
```
```
The type of the returned list from
```
Collections.emptyList();
```
will be
inferred
as a
```
String
```
due to the left-hand-side of the assignment.  However, if you prefer to not have this inference, you can define it explicitly by doing the following:
```
```
List<User> users = Collections.<User>emptyList();
```
```
In this particular instance, this may appear as redundant to most people (in fact, I've seen very little code out in the wild that makes use of explicit type arguments), however for a method with the signature:
```
void doStuff(List<String> users)
```
it would be perfectly clean for one to invoke
```
doStuff()
```
with an explicit type argument as follows:
```
```
doStuff(Collections.<String>emptyList());
```
```