TypeElement declaration = (TypeElement) declaredType.asElement(); if (declaration.getKind() == ElementKind.ENUM) { if (!isKnownTypeDefinition(declaration)) { add(createTypeDefinition(declaration), context.referenceStack); if (!isKnownTypeDefinition(declaration) && !isIgnored(declaration) && declaration.getKind() == ElementKind.CLASS && !((DecoratedDeclaredType) declaredType).isCollection() && !((DecoratedDeclaredType) declaredType).isInstanceOf(JAXBElement.class)) { add(createTypeDefinition(declaration), context.referenceStack);
TypeElement declaration = (TypeElement) declaredType.asElement(); if (declaration.getKind() == ElementKind.ENUM) { if (!isKnownTypeDefinition(declaration)) { add(createTypeDefinition(declaration), context.referenceStack); if (!isKnownTypeDefinition(declaration) && !isIgnored(declaration) && declaration.getKind() == ElementKind.CLASS && !((DecoratedDeclaredType) declaredType).isCollection() && !((DecoratedDeclaredType) declaredType).isInstanceOf(JAXBElement.class)) { add(createTypeDefinition(declaration), context.referenceStack);
protected void addPotentialJacksonElement(Element declaration, LinkedList<Element> contextStack) { if (declaration instanceof TypeElement) { if (!this.jacksonContext.isKnownTypeDefinition((TypeElement) declaration) && isExplicitTypeDefinition(declaration, this.jacksonContext.isHonorJaxb())) { OneTimeLogMessage.JACKSON_1_DEPRECATED.log(this.context); this.jacksonContext.add(this.jacksonContext.createTypeDefinition((TypeElement) declaration), contextStack); } } }
protected void addPotentialJacksonElement(Element declaration, LinkedList<Element> contextStack) { if (declaration instanceof TypeElement) { if (!this.jacksonContext.isKnownTypeDefinition((TypeElement) declaration) && isExplicitTypeDefinition(declaration, this.jacksonContext.isHonorJaxb())) { OneTimeLogMessage.JACKSON_1_DEPRECATED.log(this.context); this.jacksonContext.add(this.jacksonContext.createTypeDefinition((TypeElement) declaration), contextStack); } } }