blob: c3245e1e39d5d4d91e366bb8d9ad995af0aeb09a [file] [log] [blame]
// This test ensures that generated stub files handle methods that have an
// inferred wildcard return type correctly.
import java.util.Collection;
import java.util.Set;
import java.util.stream.Collectors;
public class WildcardReturn {
public Set<Object> getCredentialIdsForUsername(String username) {
return getRegistrationsByUsername(username).stream()
.map(registration -> registration.toString())
.collect(Collectors.toSet());
}
public Collection<Object> getRegistrationsByUsername(String username) {
return null;
}
}