@@ -184,7 +184,6 @@ public void setPermissions(Map<String, String> permissions) {
184184 }
185185
186186 GHApp wrapUp (GitHub root ) {
187- this .root = root ;
188187 return this ;
189188 }
190189
@@ -198,10 +197,10 @@ GHApp wrapUp(GitHub root) {
198197 */
199198 @ Preview (MACHINE_MAN )
200199 public PagedIterable <GHAppInstallation > listInstallations () {
201- return root .createRequest ()
200+ return root () .createRequest ()
202201 .withPreview (MACHINE_MAN )
203202 .withUrlPath ("/app/installations" )
204- .toIterable (GHAppInstallation [].class , item -> item .wrapUp (root ));
203+ .toIterable (GHAppInstallation [].class , item -> item .wrapUp (root () ));
205204 }
206205
207206 /**
@@ -218,11 +217,11 @@ public PagedIterable<GHAppInstallation> listInstallations() {
218217 */
219218 @ Preview (MACHINE_MAN )
220219 public GHAppInstallation getInstallationById (long id ) throws IOException {
221- return root .createRequest ()
220+ return root () .createRequest ()
222221 .withPreview (MACHINE_MAN )
223222 .withUrlPath (String .format ("/app/installations/%d" , id ))
224223 .fetch (GHAppInstallation .class )
225- .wrapUp (root );
224+ .wrapUp (root () );
226225 }
227226
228227 /**
@@ -240,11 +239,11 @@ public GHAppInstallation getInstallationById(long id) throws IOException {
240239 */
241240 @ Preview (MACHINE_MAN )
242241 public GHAppInstallation getInstallationByOrganization (String name ) throws IOException {
243- return root .createRequest ()
242+ return root () .createRequest ()
244243 .withPreview (MACHINE_MAN )
245244 .withUrlPath (String .format ("/orgs/%s/installation" , name ))
246245 .fetch (GHAppInstallation .class )
247- .wrapUp (root );
246+ .wrapUp (root () );
248247 }
249248
250249 /**
@@ -264,11 +263,11 @@ public GHAppInstallation getInstallationByOrganization(String name) throws IOExc
264263 */
265264 @ Preview (MACHINE_MAN )
266265 public GHAppInstallation getInstallationByRepository (String ownerName , String repositoryName ) throws IOException {
267- return root .createRequest ()
266+ return root () .createRequest ()
268267 .withPreview (MACHINE_MAN )
269268 .withUrlPath (String .format ("/repos/%s/%s/installation" , ownerName , repositoryName ))
270269 .fetch (GHAppInstallation .class )
271- .wrapUp (root );
270+ .wrapUp (root () );
272271 }
273272
274273 /**
@@ -285,11 +284,11 @@ public GHAppInstallation getInstallationByRepository(String ownerName, String re
285284 */
286285 @ Preview (MACHINE_MAN )
287286 public GHAppInstallation getInstallationByUser (String name ) throws IOException {
288- return root .createRequest ()
287+ return root () .createRequest ()
289288 .withPreview (MACHINE_MAN )
290289 .withUrlPath (String .format ("/users/%s/installation" , name ))
291290 .fetch (GHAppInstallation .class )
292- .wrapUp (root );
291+ .wrapUp (root () );
293292 }
294293
295294}
0 commit comments