fix typing on StupidResourceHolder

This commit is contained in:
Xavier Léauté 2015-03-14 13:34:52 -07:00
parent 9f7ab92d81
commit f0726f4d94
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@ public class StupidResourceHolder<T> implements ResourceHolder<T>
{ {
private final T obj; private final T obj;
public static <T> StupidResourceHolder create(T obj) public static <T> StupidResourceHolder<T> create(T obj)
{ {
return new StupidResourceHolder(obj); return new StupidResourceHolder<>(obj);
} }
public StupidResourceHolder( public StupidResourceHolder(