4040 * @see GHPullRequest#createReviewComment(String, String, String, int) GHPullRequest#createReviewComment(String, String,
4141 * String, int)
4242 */
43- public class GHPullRequestReviewComment extends GHObject implements Reactable , Refreshable {
43+ public class GHPullRequestReviewComment extends GHObject implements Reactable {
4444
4545 /**
4646 * The side of the diff to which the comment applies
@@ -219,12 +219,12 @@ public long getInReplyToId() {
219219 * Gets The line of the blob to which the comment applies. The last line of the range for a multi-line comment.
220220 *
221221 * <p>
222- * <strong>Note:</strong> This field is only populated when comments are retrieved via
223- * {@link GHPullRequest#listReviewComments()}. When retrieved via {@link GHPullRequestReview#listReviewComments()},
224- * this method returns -1 due to limitations in the GitHub API.
222+ * This field is not available on {@link GHPullRequestReview.ReviewComment} objects returned by
223+ * {@link GHPullRequestReview#listReviewComments()}. Use
224+ * {@link GHPullRequestReview.ReviewComment#readPullRequestReviewComment()} or
225+ * {@link GHPullRequest#listReviewComments()} to obtain this value.
225226 *
226227 * @return the line to which the comment applies, or -1 if not available
227- * @see GHPullRequest#listReviewComments()
228228 */
229229 public int getLine () {
230230 return line ;
@@ -243,12 +243,12 @@ public String getOriginalCommitId() {
243243 * Gets The line of the blob to which the comment applies. The last line of the range for a multi-line comment.
244244 *
245245 * <p>
246- * <strong>Note:</strong> This field is only populated when comments are retrieved via
247- * {@link GHPullRequest#listReviewComments()}. When retrieved via {@link GHPullRequestReview#listReviewComments()},
248- * this method returns -1 due to limitations in the GitHub API.
246+ * This field is not available on {@link GHPullRequestReview.ReviewComment} objects returned by
247+ * {@link GHPullRequestReview#listReviewComments()}. Use
248+ * {@link GHPullRequestReview.ReviewComment#readPullRequestReviewComment()} or
249+ * {@link GHPullRequest#listReviewComments()} to obtain this value.
249250 *
250251 * @return the line to which the comment applies, or -1 if not available
251- * @see GHPullRequest#listReviewComments()
252252 */
253253 public int getOriginalLine () {
254254 return originalLine ;
@@ -267,12 +267,12 @@ public int getOriginalPosition() {
267267 * Gets The first line of the range for a multi-line comment.
268268 *
269269 * <p>
270- * <strong>Note:</strong> This field is only populated when comments are retrieved via
271- * {@link GHPullRequest#listReviewComments()}. When retrieved via {@link GHPullRequestReview#listReviewComments()},
272- * this method returns -1 due to limitations in the GitHub API.
270+ * This field is not available on {@link GHPullRequestReview.ReviewComment} objects returned by
271+ * {@link GHPullRequestReview#listReviewComments()}. Use
272+ * {@link GHPullRequestReview.ReviewComment#readPullRequestReviewComment()} or
273+ * {@link GHPullRequest#listReviewComments()} to obtain this value.
273274 *
274275 * @return the original start line, or -1 if not available or not a multi-line comment
275- * @see GHPullRequest#listReviewComments()
276276 */
277277 public int getOriginalStartLine () {
278278 return originalStartLine != null ? originalStartLine : -1 ;
@@ -339,12 +339,12 @@ public GHPullRequestReviewCommentReactions getReactions() {
339339 * comment.
340340 *
341341 * <p>
342- * <strong>Note:</strong> This field is only populated when comments are retrieved via
343- * {@link GHPullRequest#listReviewComments()}. When retrieved via {@link GHPullRequestReview#listReviewComments()},
344- * this method returns {@link Side#UNKNOWN} due to limitations in the GitHub API.
342+ * This field is not available on {@link GHPullRequestReview.ReviewComment} objects returned by
343+ * {@link GHPullRequestReview#listReviewComments()}. Use
344+ * {@link GHPullRequestReview.ReviewComment#readPullRequestReviewComment()} or
345+ * {@link GHPullRequest#listReviewComments()} to obtain this value.
345346 *
346347 * @return {@link Side} the side of the diff to which the comment applies, or {@link Side#UNKNOWN} if not available
347- * @see GHPullRequest#listReviewComments()
348348 */
349349 public Side getSide () {
350350 return Side .from (side );
@@ -354,12 +354,12 @@ public Side getSide() {
354354 * Gets The first line of the range for a multi-line comment.
355355 *
356356 * <p>
357- * <strong>Note:</strong> This field is only populated when comments are retrieved via
358- * {@link GHPullRequest#listReviewComments()}. When retrieved via {@link GHPullRequestReview#listReviewComments()},
359- * this method returns -1 due to limitations in the GitHub API.
357+ * This field is not available on {@link GHPullRequestReview.ReviewComment} objects returned by
358+ * {@link GHPullRequestReview#listReviewComments()}. Use
359+ * {@link GHPullRequestReview.ReviewComment#readPullRequestReviewComment()} or
360+ * {@link GHPullRequest#listReviewComments()} to obtain this value.
360361 *
361362 * @return the start line, or -1 if not available or not a multi-line comment
362- * @see GHPullRequest#listReviewComments()
363363 */
364364 public int getStartLine () {
365365 return startLine != null ? startLine : -1 ;
@@ -369,12 +369,12 @@ public int getStartLine() {
369369 * Gets The side of the first line of the range for a multi-line comment.
370370 *
371371 * <p>
372- * <strong>Note:</strong> This field is only populated when comments are retrieved via
373- * {@link GHPullRequest#listReviewComments()}. When retrieved via {@link GHPullRequestReview#listReviewComments()},
374- * this method returns {@link Side#UNKNOWN} due to limitations in the GitHub API.
372+ * This field is not available on {@link GHPullRequestReview.ReviewComment} objects returned by
373+ * {@link GHPullRequestReview#listReviewComments()}. Use
374+ * {@link GHPullRequestReview.ReviewComment#readPullRequestReviewComment()} or
375+ * {@link GHPullRequest#listReviewComments()} to obtain this value.
375376 *
376377 * @return {@link Side} the side of the first line, or {@link Side#UNKNOWN} if not available
377- * @see GHPullRequest#listReviewComments()
378378 */
379379 public Side getStartSide () {
380380 return Side .from (startSide );
@@ -403,22 +403,6 @@ public PagedIterable<GHReaction> listReactions() {
403403 .toIterable (GHReaction [].class , item -> owner .root ());
404404 }
405405
406- /**
407- * Refreshes this comment by fetching the full data from the API.
408- *
409- * <p>
410- * This is useful when the comment was obtained via {@link GHPullRequestReview#listReviewComments()}, which uses a
411- * GitHub API endpoint that does not return line-related fields. After calling this method, fields like
412- * {@link #getLine()}, {@link #getOriginalLine()}, {@link #getSide()}, etc. will return their actual values.
413- *
414- * @throws IOException
415- * if an I/O error occurs
416- * @see GHPullRequest#listReviewComments()
417- */
418- public void refresh () throws IOException {
419- owner .root ().createRequest ().withUrlPath (getApiRoute ()).fetchInto (this ).wrapUp (owner );
420- }
421-
422406 /**
423407 * Create a new comment that replies to this comment.
424408 *
0 commit comments