@Override public List<TypeReference> visitGenericParameter(final GenericParameter t, final Void ignored) { if (t.hasExtendsBound()) { final TypeReference bound = t.getExtendsBound(); final TypeDefinition resolvedBound = bound.resolve(); if (resolvedBound != null) { if (resolvedBound.isInterface()) { return Collections.singletonList(bound); } if (resolvedBound.isCompoundType()) { visit(bound, null); } } return visit(bound, null); } return Collections.emptyList(); } };
@Override public List<TypeReference> visitGenericParameter(final GenericParameter t, final Void ignored) { if (t.hasExtendsBound()) { final TypeReference bound = t.getExtendsBound(); final TypeDefinition resolvedBound = bound.resolve(); if (resolvedBound != null) { if (resolvedBound.isInterface()) { return Collections.singletonList(bound); } if (resolvedBound.isCompoundType()) { visit(bound, null); } } return visit(bound, null); } return Collections.emptyList(); } };
@Override public List<TypeReference> visitGenericParameter(final GenericParameter t, final Void ignored) { if (t.hasExtendsBound()) { final TypeReference bound = t.getExtendsBound(); final TypeDefinition resolvedBound = bound.resolve(); if (resolvedBound != null) { if (resolvedBound.isInterface()) { return Collections.singletonList(bound); } if (resolvedBound.isCompoundType()) { visit(bound, null); } } return visit(bound, null); } return Collections.emptyList(); } };
@Override public List<TypeReference> visitWildcard(final WildcardType t, final Void ignored) { if (t.hasExtendsBound()) { final TypeReference bound = t.getExtendsBound(); final TypeDefinition resolvedBound = bound.resolve(); if (resolvedBound != null) { if (resolvedBound.isInterface()) { return Collections.singletonList(bound); } if (resolvedBound.isCompoundType()) { visit(bound, null); } } return visit(bound, null); } return Collections.emptyList(); }
@Override public List<TypeReference> visitWildcard(final WildcardType t, final Void ignored) { if (t.hasExtendsBound()) { final TypeReference bound = t.getExtendsBound(); final TypeDefinition resolvedBound = bound.resolve(); if (resolvedBound != null) { if (resolvedBound.isInterface()) { return Collections.singletonList(bound); } if (resolvedBound.isCompoundType()) { visit(bound, null); } } return visit(bound, null); } return Collections.emptyList(); }
@Override public List<TypeReference> visitWildcard(final WildcardType t, final Void ignored) { if (t.hasExtendsBound()) { final TypeReference bound = t.getExtendsBound(); final TypeDefinition resolvedBound = bound.resolve(); if (resolvedBound != null) { if (resolvedBound.isInterface()) { return Collections.singletonList(bound); } if (resolvedBound.isCompoundType()) { visit(bound, null); } } return visit(bound, null); } return Collections.emptyList(); }