Skip to content

Commit e3a30ba

Browse files
authored
Merge pull request #81 from microsoftgraph/bugfix/client-generic-type
- fixes a bug where clients would get a warning because of a missing generic type
2 parents ff15f20 + 1abab15 commit e3a30ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ For an example of how to get an authentication provider, see [choose a Microsoft
6868
After you have set the correct application ID and URL, you must get a **GraphServiceClient** object to make requests against the service. The SDK stores the account information for you, but when a user signs in for the first time, it invokes the UI to get the user's account information.
6969

7070
```java
71-
GraphServiceClient graphClient =
71+
GraphServiceClient<Request> graphClient =
7272
GraphServiceClient
7373
.builder()
7474
.authenticationProvider(authenticationProvider)

src/main/java/com/microsoft/graph/requests/GraphServiceClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public Builder<httpClientType, nativeRequestType> serializer(@Nonnull final ISer
267267
*/
268268
@Nonnull
269269
@Override
270-
public Builder<httpClientType, nativeRequestType> httpProvider(@Nonnull final IHttpProvider httpProvider) {
270+
public Builder<httpClientType, nativeRequestType> httpProvider(@Nonnull final IHttpProvider<nativeRequestType> httpProvider) {
271271
super.httpProvider(httpProvider);
272272
return this;
273273
}
@@ -322,8 +322,8 @@ public Builder<httpClientType, nativeRequestType> authenticationProvider(@Nonnul
322322
*/
323323
@Nonnull
324324
@Override
325-
public GraphServiceClient buildClient() throws ClientException {
326-
return buildClient(new GraphServiceClient());
325+
public GraphServiceClient<nativeRequestType> buildClient() throws ClientException {
326+
return buildClient(new GraphServiceClient<>());
327327
}
328328
}
329329

0 commit comments

Comments
 (0)