diff --git a/CHANGELOG.md b/CHANGELOG.md index ced4410b7..e2c5c6f07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Replaces `@Nullable` annotations to `@Nonnull` in the `BaseRequestConfiguration`. + ## [1.1.3] - 2024-04-02 ### Changed 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 c46860e07..91bef1eec 100644 --- a/components/abstractions/src/main/java/com/microsoft/kiota/BaseRequestConfiguration.java +++ b/components/abstractions/src/main/java/com/microsoft/kiota/BaseRequestConfiguration.java @@ -1,10 +1,13 @@ package com.microsoft.kiota; -import jakarta.annotation.Nullable; +import jakarta.annotation.Nonnull; import java.util.Collections; +import java.util.List; -/** Base class for request configuration */ +/** + * Base class for request configuration + */ public abstract class BaseRequestConfiguration { /** * Default constructor @@ -13,9 +16,13 @@ public BaseRequestConfiguration() { // default empty constructor } - /** Request headers */ - @Nullable public RequestHeaders headers = new RequestHeaders(); + /** + * Request headers + */ + @Nonnull public RequestHeaders headers = new RequestHeaders(); - /** Request options */ - @Nullable public java.util.List options = Collections.emptyList(); + /** + * Request options + */ + @Nonnull public List options = Collections.emptyList(); }