(Type[] bounds)
| 351 | |
| 352 | |
| 353 | private ImmutableList<TypeToken<? super T>> boundsAsInterfaces(Type[] bounds) { |
| 354 | ImmutableList.Builder<TypeToken<? super T>> builder = ImmutableList.builder(); |
| 355 | for (Type bound : bounds) { |
| 356 | @SuppressWarnings("unchecked") // upper bound of T |
| 357 | TypeToken<? super T> boundType = (TypeToken<? super T>) of(bound); |
| 358 | if (boundType.getRawType().isInterface()) { |
| 359 | builder.add(boundType); |
| 360 | } |
| 361 | } |
| 362 | return builder.build(); |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * Returns the set of interfaces and classes that this type is or is a subtype of. The returned |
no test coverage detected