> @@ -80,6 +80,23 @@
> @Fallback(NullOnNotFoundOr404.class)
> @Path("/")
> @Nullable
> + ObjectList list();
> +
> + /**
> + * Lists up to 10,000 objects.
> + *
> + * @param options
> + * the {@link ListContainerOptions} for controlling the
> returned list.
> + *
> + * @return an {@link ObjectList} of {@link SwiftObject} ordered by name
> or {@code null}.
> + */
> + @Named("object:list")
> + @GET
> + @QueryParams(keys = "format", values = "json")
> + @ResponseParser(ParseObjectListFromResponse.class)
> + @Fallback(NullOnNotFoundOr404.class)
I've just seen this. In list methods, we should return empty lists instead of
null ones. This was already returning null, so I'm just asking. Can we change
the behavior of the list methods to return empty lists?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/89/files#r11248044