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