File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
slack-api-model/src/main/java/com/slack/api/util/json Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1313import java .io .IOException ;
1414
1515/**
16- * Adapter factory for processing objects annotated with our custom annotation {@link Required}.
16+ * Adapter factory for processing objects annotated with {@link Required}. This annotation signals what properties
17+ * of a model object are required, and thus should be expected to be initialized and non-null on every instance of
18+ * said object.
1719 * <p>
1820 * For deserialization (e.g. converting JSON --> POJO), it ensures that any fields marked as {@link Required} are
1921 * present in the constructed object and nonnull.
2022 * <p>
21- * For serialization (e.g. converting POJO --> JSON), it ensures that any fields marked as {@link Required} are
22- * non-null and written to the JSON string .
23+ * For serialization (e.g. converting POJO --> JSON), it ensures that any fields marked as {@link Required} are non-null
24+ * in the construct object prior to serialization .
2325 */
2426public class RequiredAdapterFactory implements TypeAdapterFactory {
2527 @ Override
You can’t perform that action at this time.
0 commit comments