GaiaXAndroidQuickJS/src/main/java/com/alibaba/gaiax/quickjs/Types.java [289:299]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    static Type removeSubtypeWildcard(Type type) {
        if (!(type instanceof WildcardType)) return type;

        Type[] lowerBounds = ((WildcardType) type).getLowerBounds();
        if (lowerBounds.length != 0) return type;

        Type[] upperBounds = ((WildcardType) type).getUpperBounds();
        if (upperBounds.length != 1) throw new IllegalArgumentException();

        return upperBounds[0];
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



GaiaXAndroidJS/src/main/kotlin/com/alibaba/gaiax/js/support/Types.java [289:299]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    static Type removeSubtypeWildcard(Type type) {
        if (!(type instanceof WildcardType)) return type;

        Type[] lowerBounds = ((WildcardType) type).getLowerBounds();
        if (lowerBounds.length != 0) return type;

        Type[] upperBounds = ((WildcardType) type).getUpperBounds();
        if (upperBounds.length != 1) throw new IllegalArgumentException();

        return upperBounds[0];
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



