(Type bound)
| 310 | } |
| 311 | |
| 312 | @Nullable |
| 313 | private TypeToken<? super T> boundAsSuperclass(Type bound) { |
| 314 | TypeToken<?> token = of(bound); |
| 315 | if (token.getRawType().isInterface()) { |
| 316 | return null; |
| 317 | } |
| 318 | @SuppressWarnings("unchecked") // only upper bound of T is passed in. |
| 319 | TypeToken<? super T> superclass = (TypeToken<? super T>) token; |
| 320 | return superclass; |
| 321 | } |
| 322 | |
| 323 | /** |
| 324 | * Returns the generic interfaces that this type directly {@code implements}. This method is |
no test coverage detected