Skip to content

Commit 4657597

Browse files
authored
Merge pull request #699 from microsoftgraph/bugfix/generic-type-warning
- fixes a bug where clients would get a warning because of a missing generic type
2 parents e148b37 + 29a852d commit 4657597

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)