I have a very simple method that I cannot work with:
private Map<UUID, Foo<?, ?, ?>> foos = new HashMap<UUID, Foo<?, ?, ?>>();
public Optional<Foo<?, ?, ?>> getFoo(UUID id){
return Optional.fromNullable(foos.get(id));
}
How can these be incompatible types? How can I get around this?
source
share