2626import java .io .IOException ;
2727import java .net .URL ;
2828
29+ import static org .kohsuke .github .Previews .BLACK_CAT ;
30+
2931/**
3032 * Review to the pull request
3133 *
@@ -105,7 +107,7 @@ public void submit(String body, GHPullRequestReviewState event) throws IOExcepti
105107 @ Deprecated
106108 public void delete () throws IOException {
107109 new Requester (owner .root ).method ("DELETE" )
108- .withPreview ("application/vnd.github.black-cat-preview+json" )
110+ .withPreview (BLACK_CAT )
109111 .to (getApiRoute ());
110112 }
111113
@@ -117,7 +119,7 @@ public void delete() throws IOException {
117119 public void dismiss (String message ) throws IOException {
118120 new Requester (owner .root ).method ("PUT" )
119121 .with ("message" , message )
120- .withPreview ("application/vnd.github.black-cat-preview+json" )
122+ .withPreview (BLACK_CAT )
121123 .to (getApiRoute ()+"/dismissals" );
122124 state = GHPullRequestReviewState .DISMISSED ;
123125 }
@@ -132,7 +134,7 @@ public PagedIterable<GHPullRequestReviewComment> listReviewComments() throws IOE
132134 public PagedIterator <GHPullRequestReviewComment > _iterator (int pageSize ) {
133135 return new PagedIterator <GHPullRequestReviewComment >(
134136 owner .root .retrieve ()
135- .withPreview ("application/vnd.github.black-cat-preview+json" )
137+ .withPreview (BLACK_CAT )
136138 .asIterator (getApiRoute () + "/comments" ,
137139 GHPullRequestReviewComment [].class , pageSize )) {
138140 protected void wrapUp (GHPullRequestReviewComment [] page ) {
0 commit comments