> + }
> +
> + public static class ToPagedIterable extends
> ArgsToPagedIterable<Discount, ToPagedIterable> {
> +
> + private CloudSigma2Api api;
> +
> + @Inject
> + public ToPagedIterable(CloudSigma2Api api) {
> + this.api = api;
> + }
> +
> + @Override
> + protected Function<Object, IterableWithMarker<Discount>>
> markerToNextForArgs(List<Object> args) {
> + return new Function<Object, IterableWithMarker<Discount>>() {
> + @Override
> + public IterableWithMarker<Discount> apply(@Nullable Object
> input) {
This function will only be called when the marker is present, so in practice
the `input` parameter won't be null. Remove the `@Nullable` annotation (apply
this to all parser classes).
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/35/files#r7619717