Skip to content

Commit df86d48

Browse files
authored
Merge pull request #161 from microsoftgraph/bugfix/wrong-nullability-annotation
- fixes a bug where the nullability annotation would be stricter than the interface
2 parents e517b6a + 212ae1f commit df86d48

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,7 @@ public IHttpRequest withHttpMethod(@Nonnull final HttpMethod httpMethod) {
441441
*/
442442
@Override
443443
@Nullable
444-
public <requestBodyType, responseType, nativeRequestType> nativeRequestType getHttpRequest(@Nonnull final requestBodyType serializedObject) throws ClientException {
445-
Objects.requireNonNull(serializedObject, "parameter serializedObject cannot be null");
444+
public <requestBodyType, responseType, nativeRequestType> nativeRequestType getHttpRequest(@Nullable final requestBodyType serializedObject) throws ClientException {
446445
return baseRequest.getHttpRequest(serializedObject);
447446
}
448447
}

0 commit comments

Comments
 (0)