Skip to content

Commit 29a852d

Browse files
committed
- fixes a bug where clients would get a warning because of a missing generic type
1 parent abbd75e commit 29a852d

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
@@ -58,7 +58,7 @@ For an example of how to get an authentication provider, see [choose a Microsoft
5858
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.
5959

6060
```java
61-
GraphServiceClient graphClient =
61+
GraphServiceClient<Request> graphClient =
6262
GraphServiceClient
6363
.builder()
6464
.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
@@ -190,7 +190,7 @@ public Builder<httpClientType, nativeRequestType> serializer(@Nonnull final ISer
190190
*/
191191
@Nonnull
192192
@Override
193-
public Builder<httpClientType, nativeRequestType> httpProvider(@Nonnull final IHttpProvider httpProvider) {
193+
public Builder<httpClientType, nativeRequestType> httpProvider(@Nonnull final IHttpProvider<nativeRequestType> httpProvider) {
194194
super.httpProvider(httpProvider);
195195
return this;
196196
}
@@ -245,8 +245,8 @@ public Builder<httpClientType, nativeRequestType> authenticationProvider(@Nonnul
245245
*/
246246
@Nonnull
247247
@Override
248-
public GraphServiceClient buildClient() throws ClientException {
249-
return buildClient(new GraphServiceClient());
248+
public GraphServiceClient<nativeRequestType> buildClient() throws ClientException {
249+
return buildClient(new GraphServiceClient<>());
250250
}
251251
}
252252

0 commit comments

Comments
 (0)