/** * Append a type signature * * @param buf Buffer to append to * @param role Role (class or super) * @param type Type to append signature of * @param annotatedSignatureWriter Signature writer * @return <code>true</code> if any nullability information was written * @throws IOException if we stumble and fall... */ protected boolean appendTypeSignature(StringBuilder buf, String role, Generic type, MethodSignatureWriter annotatedSignatureWriter) throws IOException { boolean annotated = false; buf.append(role).append(' ').append(type.asErasure().getInternalName()).append("\n"); TypeList.Generic typeVariables = type.asErasure().getTypeVariables(); if (!typeVariables.isEmpty()) { if (appendTypeParameters(buf, typeVariables, annotatedSignatureWriter)) { annotated = true; } } return annotated; }
StringBuilder buf = new StringBuilder(); boolean annotated = appendTypeSignature(buf, "class", type.asGenericType(), annotatedSignatureWriter); if (appendTypeSignature(buf, "super", superClass, annotatedSignatureWriter)) { annotated = true; if (appendTypeSignature(buf, "super", interfaceType, annotatedSignatureWriter)) { annotated = true;
boolean annotated = false; try (AnnotationsJarWriter writer = new AnnotationsJarWriter(annotationJarFile, AnnotationNullability.jsr305()); JarReader reader = new JarReader(jarFile, classLoader)) { List<TypeDescription> types = new ArrayList<>(reader.getTypes().values()); boolean typeAnnotated = writer.write(type, e -> { if (knownErrors.add(e.getMessage())) { getLogger().info(e.getMessage());
boolean annotated = false; try (AnnotationsJarWriter writer = new AnnotationsJarWriter(annotationJarFile, AnnotationNullability.jsr305()); JarReader reader = new JarReader(jarFile, classLoader)) { List<TypeDescription> types = new ArrayList<>(reader.getTypes().values()); boolean typeAnnotated = writer.write(type, e -> { if (knownErrors.add(e.getMessage())) { getLogger().info(e.getMessage());
/** * Append a type signature * * @param buf Buffer to append to * @param role Role (class or super) * @param type Type to append signature of * @param annotatedSignatureWriter Signature writer * @return <code>true</code> if any nullability information was written * @throws IOException if we stumble and fall... */ protected boolean appendTypeSignature(StringBuilder buf, String role, Generic type, MethodSignatureWriter annotatedSignatureWriter) throws IOException { boolean annotated = false; buf.append(role).append(' ').append(type.asErasure().getInternalName()).append("\n"); TypeList.Generic typeVariables = type.asErasure().getTypeVariables(); if (!typeVariables.isEmpty()) { if (appendTypeParameters(buf, typeVariables, annotatedSignatureWriter)) { annotated = true; } } return annotated; }
StringBuilder buf = new StringBuilder(); boolean annotated = appendTypeSignature(buf, "class", type.asGenericType(), annotatedSignatureWriter); if (appendTypeSignature(buf, "super", superClass, annotatedSignatureWriter)) { annotated = true; if (appendTypeSignature(buf, "super", interfaceType, annotatedSignatureWriter)) { annotated = true;