Class PatchLineComment


  • public final class PatchLineComment
    extends Object
    A comment left by a user on a specific line of a Patch.

    This class represents an inline comment in ReviewDb. It should only be used for writing/reading inline comments to/from ReviewDb. For all other purposes inline comments should be represented by Comment.

    See Also:
    Comment
    • Field Detail

      • lineNbr

        protected int lineNbr
        Line number this comment applies to; it should display after the line.
      • author

        protected Account.Id author
        Who wrote this comment.
      • writtenOn

        protected Timestamp writtenOn
        When this comment was drafted.
      • side

        protected short side
        Which file is this comment; 0 is ancestor, 1 is new version.
      • message

        protected String message
        The text left by the user.
      • parentUuid

        protected String parentUuid
        The parent of this comment, or null if this is the first comment on this line
      • realAuthor

        protected Account.Id realAuthor
        Real user that added this comment on behalf of the user recorded in author.
      • unresolved

        protected boolean unresolved
        True if this comment requires further action.
      • revId

        protected RevId revId
        The RevId for the commit to which this comment is referring.

        Note that this field is not stored in the database. It is just provided for users of this class to avoid a lookup when they don't have easy access to a ReviewDb.