From 212ae1f6c0d5bcab392268b566daa4c886be7c81 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 1 Mar 2021 12:23:31 -0500 Subject: [PATCH] - fixes a bug where the nullability annotation would be stricter than the interface --- .../java/com/microsoft/graph/http/BaseCollectionRequest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java b/src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java index c148ef198..694703cb2 100644 --- a/src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java @@ -441,8 +441,7 @@ public IHttpRequest withHttpMethod(@Nonnull final HttpMethod httpMethod) { */ @Override @Nullable - public nativeRequestType getHttpRequest(@Nonnull final requestBodyType serializedObject) throws ClientException { - Objects.requireNonNull(serializedObject, "parameter serializedObject cannot be null"); + public nativeRequestType getHttpRequest(@Nullable final requestBodyType serializedObject) throws ClientException { return baseRequest.getHttpRequest(serializedObject); } }