diff --git a/java/com/google/gerrit/extensions/common/AccountDetailInfo.java b/java/com/google/gerrit/extensions/common/AccountDetailInfo.java index 3ffa97a212..14027ac095 100644 --- a/java/com/google/gerrit/extensions/common/AccountDetailInfo.java +++ b/java/com/google/gerrit/extensions/common/AccountDetailInfo.java @@ -16,6 +16,15 @@ package com.google.gerrit.extensions.common; import java.sql.Timestamp; +/** + * Representation of a (detailed) account in the REST API. + * + *
This class determines the JSON format of (detailed) accounts in the REST API. + * + *
This class extends {@link AccountInfo} (which defines fields for account properties that are + * frequently used) and provides additional fields for account details which are needed only in some + * cases. + */ public class AccountDetailInfo extends AccountInfo { public Timestamp registeredOn; diff --git a/java/com/google/gerrit/extensions/common/AccountInfo.java b/java/com/google/gerrit/extensions/common/AccountInfo.java index d1bbe88230..3dcee71297 100644 --- a/java/com/google/gerrit/extensions/common/AccountInfo.java +++ b/java/com/google/gerrit/extensions/common/AccountInfo.java @@ -18,6 +18,14 @@ import com.google.common.base.MoreObjects; import java.util.List; import java.util.Objects; +/** + * Representation of an account in the REST API. + * + *
This class determines the JSON format of accounts in the REST API. + * + *
This class defines fields for account properties that are frequently used. Additional fields + * are defined in {@link AccountDetailInfo}. + */ public class AccountInfo { public Integer _accountId; public String name;