if (schema == null) { AvroDoc annotatedDoc = c.getAnnotation(AvroDoc.class); // Docstring String doc = (annotatedDoc != null) ? annotatedDoc.value() : null; String name = c.getSimpleName(); String space = c.getPackage() == null ? "" : c.getPackage().getName(); : Schema.parseJsonToObject(defaultAnnotation.value()); annotatedDoc = field.getAnnotation(AvroDoc.class); // Docstring doc = (annotatedDoc != null) ? annotatedDoc.value() : null;