(GenericArrayType subtype)
| 956 | |
| 957 | |
| 958 | private boolean isSupertypeOfArray(GenericArrayType subtype) { |
| 959 | if (runtimeType instanceof Class) { |
| 960 | Class<?> thisClass = (Class<?>) runtimeType; |
| 961 | if (!thisClass.isArray()) { |
| 962 | return thisClass.isAssignableFrom(Object[].class); |
| 963 | } |
| 964 | return of(subtype.getGenericComponentType()).isSubtypeOf(thisClass.getComponentType()); |
| 965 | } else if (runtimeType instanceof GenericArrayType) { |
| 966 | return of(subtype.getGenericComponentType()).isSubtypeOf(((GenericArrayType) runtimeType).getGenericComponentType()); |
| 967 | } else { |
| 968 | return false; |
| 969 | } |
| 970 | } |
| 971 | |
| 972 | /** |
| 973 | * Return true if any of the following conditions is met: |
no test coverage detected