1111import java .util .Map ;
1212import java .util .stream .Collectors ;
1313
14- import static org .kohsuke .github .internal .Previews .MACHINE_MAN ;
15-
1614// TODO: Auto-generated Javadoc
1715/**
1816 * A Github App.
@@ -208,7 +206,6 @@ public void setPermissions(Map<String, String> permissions) {
208206 * @return a list of App installations
209207 * @see <a href="https://developer.github.com/v3/apps/#list-installations">List installations</a>
210208 */
211- @ Preview (MACHINE_MAN )
212209 public PagedIterable <GHAppInstallation > listInstallations () {
213210 return listInstallations (null );
214211 }
@@ -223,9 +220,8 @@ public PagedIterable<GHAppInstallation> listInstallations() {
223220 * @return a list of App installations since a given time.
224221 * @see <a href="https://developer.github.com/v3/apps/#list-installations">List installations</a>
225222 */
226- @ Preview (MACHINE_MAN )
227223 public PagedIterable <GHAppInstallation > listInstallations (final Date since ) {
228- Requester requester = root ().createRequest ().withPreview ( MACHINE_MAN ). withUrlPath ("/app/installations" );
224+ Requester requester = root ().createRequest ().withUrlPath ("/app/installations" );
229225 if (since != null ) {
230226 requester .with ("since" , GitHubClient .printDate (since ));
231227 }
@@ -244,10 +240,8 @@ public PagedIterable<GHAppInstallation> listInstallations(final Date since) {
244240 * on error
245241 * @see <a href="https://developer.github.com/v3/apps/#get-an-installation">Get an installation</a>
246242 */
247- @ Preview (MACHINE_MAN )
248243 public GHAppInstallation getInstallationById (long id ) throws IOException {
249244 return root ().createRequest ()
250- .withPreview (MACHINE_MAN )
251245 .withUrlPath (String .format ("/app/installations/%d" , id ))
252246 .fetch (GHAppInstallation .class );
253247 }
@@ -265,10 +259,8 @@ public GHAppInstallation getInstallationById(long id) throws IOException {
265259 * @see <a href="https://developer.github.com/v3/apps/#get-an-organization-installation">Get an organization
266260 * installation</a>
267261 */
268- @ Preview (MACHINE_MAN )
269262 public GHAppInstallation getInstallationByOrganization (String name ) throws IOException {
270263 return root ().createRequest ()
271- .withPreview (MACHINE_MAN )
272264 .withUrlPath (String .format ("/orgs/%s/installation" , name ))
273265 .fetch (GHAppInstallation .class );
274266 }
@@ -288,10 +280,8 @@ public GHAppInstallation getInstallationByOrganization(String name) throws IOExc
288280 * @see <a href="https://developer.github.com/v3/apps/#get-a-repository-installation">Get a repository
289281 * installation</a>
290282 */
291- @ Preview (MACHINE_MAN )
292283 public GHAppInstallation getInstallationByRepository (String ownerName , String repositoryName ) throws IOException {
293284 return root ().createRequest ()
294- .withPreview (MACHINE_MAN )
295285 .withUrlPath (String .format ("/repos/%s/%s/installation" , ownerName , repositoryName ))
296286 .fetch (GHAppInstallation .class );
297287 }
@@ -308,10 +298,8 @@ public GHAppInstallation getInstallationByRepository(String ownerName, String re
308298 * on error
309299 * @see <a href="https://developer.github.com/v3/apps/#get-a-user-installation">Get a user installation</a>
310300 */
311- @ Preview (MACHINE_MAN )
312301 public GHAppInstallation getInstallationByUser (String name ) throws IOException {
313302 return root ().createRequest ()
314- .withPreview (MACHINE_MAN )
315303 .withUrlPath (String .format ("/users/%s/installation" , name ))
316304 .fetch (GHAppInstallation .class );
317305 }
0 commit comments