protected final void addBuilderMethods() for (Method method : findAnnotatedMethods(getBuilderClass(), ThriftConstructor.class)) { List<ParameterInjection> parameters = getParameterInjections( builderType, for (Method method : getAllDeclaredMethods(getBuilderClass())) { if (method.isAnnotationPresent(ThriftConstructor.class) || hasThriftFieldAnnotation(method)) { if (!Modifier.isPublic(method.getModifiers())) { metadataErrors.addError("Struct builder class '%s' does not have a public builder method annotated with @ThriftConstructor", getBuilderClass().getName());
protected final void addBuilderMethods() for (Method method : findAnnotatedMethods(getBuilderClass(), ThriftConstructor.class)) { List<ParameterInjection> parameters = getParameterInjections( builderType, for (Method method : getAllDeclaredMethods(getBuilderClass())) { if (method.isAnnotationPresent(ThriftConstructor.class) || hasThriftFieldAnnotation(method)) { if (!Modifier.isPublic(method.getModifiers())) { metadataErrors.addError("Struct builder class '%s' does not have a public builder method annotated with @ThriftConstructor", getBuilderClass().getName());
protected final void extractFromFields() { if (builderType == null) { // struct fields are readable and writable addFields(getStructClass(), true, true); } else { // builder fields are writable addFields(getBuilderClass(), false, true); // struct fields are readable addFields(getStructClass(), true, false); } }
protected final void extractFromFields() { if (builderType == null) { // struct fields are readable and writable addFields(getStructClass(), true, true); } else { // builder fields are writable addFields(getBuilderClass(), false, true); // struct fields are readable addFields(getStructClass(), true, false); } }