Yep. You can't have parameterized classes in the annotations, as the type of 
the generic parameter belongs to the instance of the object and not the 
definition of the class, which is what you need in the annotations.

I don't like the idea of returning `null`, as the api will behave different 
than any other existing APIs. Why not just creating a custom `QueuesFallback` 
for this method that implements `Fallback<Queues>`? The code would be pretty 
much the same than the one in the `EmptyPaginatedCollectionOnNotFoundOr404 ` 
class, but that isn't a big deal IMO and the API will behave as expected. That 
fallback in keystone can be refactored in another PR to make it non-final and 
more generic so it can be easily subclassed.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/96#issuecomment-42783051

Reply via email to