diff --git a/components/abstractions/src/main/java/com/microsoft/kiota/BaseRequestConfiguration.java b/components/abstractions/src/main/java/com/microsoft/kiota/BaseRequestConfiguration.java index 2a9bf403f..a93859219 100644 --- a/components/abstractions/src/main/java/com/microsoft/kiota/BaseRequestConfiguration.java +++ b/components/abstractions/src/main/java/com/microsoft/kiota/BaseRequestConfiguration.java @@ -6,6 +6,12 @@ /** Base class for request configuration */ public abstract class BaseRequestConfiguration { + /** + * Default constructor + */ + public BaseRequestConfiguration() { + // default empty constructor + } /** Request headers */ @Nullable public RequestHeaders headers = new RequestHeaders(); diff --git a/components/abstractions/src/main/java/com/microsoft/kiota/CaseInsensitiveMap.java b/components/abstractions/src/main/java/com/microsoft/kiota/CaseInsensitiveMap.java index 03cc40f27..8fe0a09a1 100644 --- a/components/abstractions/src/main/java/com/microsoft/kiota/CaseInsensitiveMap.java +++ b/components/abstractions/src/main/java/com/microsoft/kiota/CaseInsensitiveMap.java @@ -17,6 +17,9 @@ * A map that is case-insensitive on the keys */ public class CaseInsensitiveMap implements Map>{ + /** + * Default constructor + */ public CaseInsensitiveMap() { // default constructor } diff --git a/components/abstractions/src/main/java/com/microsoft/kiota/MultipartBody.java b/components/abstractions/src/main/java/com/microsoft/kiota/MultipartBody.java index 95c7ef0d0..ea8fee239 100644 --- a/components/abstractions/src/main/java/com/microsoft/kiota/MultipartBody.java +++ b/components/abstractions/src/main/java/com/microsoft/kiota/MultipartBody.java @@ -17,6 +17,12 @@ * Represents a multipart body for a request or a response. */ public class MultipartBody implements Parsable { + /** + * Creates a new instance of the MultipartBody class. + */ + public MultipartBody() { + // default empty constructor + } @Nonnull private final String boundary = UUID.randomUUID().toString().replace("-", ""); /** diff --git a/components/abstractions/src/main/java/com/microsoft/kiota/NativeResponseHandler.java b/components/abstractions/src/main/java/com/microsoft/kiota/NativeResponseHandler.java index 8b203dff9..3145eb0c1 100644 --- a/components/abstractions/src/main/java/com/microsoft/kiota/NativeResponseHandler.java +++ b/components/abstractions/src/main/java/com/microsoft/kiota/NativeResponseHandler.java @@ -13,6 +13,12 @@ * The {@code ResponseHandler} implementation to handle native response objects */ public class NativeResponseHandler implements ResponseHandler { + /** + * Default constructor + */ + public NativeResponseHandler() { + // default empty constructor + } private Object value; private HashMap> errorMappings; @Override diff --git a/components/abstractions/src/main/java/com/microsoft/kiota/ResponseHandler.java b/components/abstractions/src/main/java/com/microsoft/kiota/ResponseHandler.java index ce88ecedd..64ed54e9f 100644 --- a/components/abstractions/src/main/java/com/microsoft/kiota/ResponseHandler.java +++ b/components/abstractions/src/main/java/com/microsoft/kiota/ResponseHandler.java @@ -17,6 +17,7 @@ public interface ResponseHandler { * @param errorMappings the error mappings for the response to use when deserializing failed responses bodies. Where an error code like 401 applies specifically to that status code, a class code like 4XX applies to all status codes within the range if an the specific error code is not present. * @param The type of the native response object. * @param The type of the response model object. + * @return The deserialized response model object. */ @Nullable ModelType handleResponse(@Nonnull final NativeResponseType response, @Nullable final HashMap> errorMappings); diff --git a/components/http/okHttp/src/main/java/com/microsoft/kiota/http/HeadersCompatibility.java b/components/http/okHttp/src/main/java/com/microsoft/kiota/http/HeadersCompatibility.java index 2bfd2a6d7..d2c19cb9b 100644 --- a/components/http/okHttp/src/main/java/com/microsoft/kiota/http/HeadersCompatibility.java +++ b/components/http/okHttp/src/main/java/com/microsoft/kiota/http/HeadersCompatibility.java @@ -20,6 +20,7 @@ private HeadersCompatibility() { * @param headers the okhttp3 headers * @return the ResponseHeaders object */ + @Nonnull public static ResponseHeaders getResponseHeaders(@Nonnull final okhttp3.Headers headers) { Objects.requireNonNull(headers); final ResponseHeaders responseHeaders = new ResponseHeaders(); @@ -29,13 +30,13 @@ public static ResponseHeaders getResponseHeaders(@Nonnull final okhttp3.Headers }); return responseHeaders; } - /** * INTERNAL METHOD, DO NOT USE DIRECTLY * Get the request headers from the okhttp3 headers and convert them to a RequestHeaders object * @param headers the okhttp3 headers * @return the RequestHeaders object */ + @Nonnull public static RequestHeaders getRequestHeaders(@Nonnull final okhttp3.Headers headers) { Objects.requireNonNull(headers); final RequestHeaders requestHeaders = new RequestHeaders();