diff options
Diffstat (limited to 'gerrit-common/src/main/java/com/google/gerrit/common/data/ChangeDetail.java')
-rw-r--r-- | gerrit-common/src/main/java/com/google/gerrit/common/data/ChangeDetail.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gerrit-common/src/main/java/com/google/gerrit/common/data/ChangeDetail.java b/gerrit-common/src/main/java/com/google/gerrit/common/data/ChangeDetail.java index 7ac21db51c..f6d5ea331c 100644 --- a/gerrit-common/src/main/java/com/google/gerrit/common/data/ChangeDetail.java +++ b/gerrit-common/src/main/java/com/google/gerrit/common/data/ChangeDetail.java @@ -20,6 +20,7 @@ import com.google.gerrit.reviewdb.client.PatchSet; import com.google.gerrit.reviewdb.client.Project; import java.util.List; +import java.util.Set; /** Detail necessary to display a change. */ public class ChangeDetail { @@ -37,6 +38,7 @@ public class ChangeDetail { protected List<ChangeInfo> dependsOn; protected List<ChangeInfo> neededBy; protected List<PatchSet> patchSets; + protected Set<PatchSet.Id> patchSetsWithDraftComments; protected List<SubmitRecord> submitRecords; protected Project.SubmitType submitType; protected SubmitTypeRecord submitTypeRecord; @@ -187,6 +189,14 @@ public class ChangeDetail { patchSets = s; } + public void setPatchSetsWithDraftComments(Set<PatchSet.Id> pwdc) { + this.patchSetsWithDraftComments = pwdc; + } + + public boolean hasDraftComments(PatchSet.Id id) { + return patchSetsWithDraftComments.contains(id); + } + public void setSubmitRecords(List<SubmitRecord> all) { submitRecords = all; } |