> @@ -45,7 +45,7 @@ protected BaseView(@Provider Context backend, @Provider
> TypeToken<? extends Cont
> @SuppressWarnings("unchecked")
> @Override
> public <C extends Context> C unwrap(TypeToken<C> type) {
> - checkArgument(checkNotNull(type,
> "type").isAssignableFrom(backendType), "backend type: %s not assignable to
> %s", backendType, type);
> + checkArgument(checkNotNull(type, "type").isSupertypeOf(backendType),
> "backend type: %s not assignable to %s", backendType, type);
[minor] Perhaps change the message to `type: %s is not a supertype of %s...` to
match the code? Probably more comprehensible for users, too ;-)
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/982/files/de6171ce5d7c55b8733bbbfc3e7606a0739f2dad#r70555934