Skip to content

Commit

Permalink
Merge pull request #1149 from piotrooo/feature/remove-nullable-from-b…
Browse files Browse the repository at this point in the history
…ase-request-configuration

Remove unnecessary @nullable annotations
  • Loading branch information
andrueastman authored Apr 3, 2024
2 parents 6c6f4cc + fbbcf04 commit a7a6569
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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<RequestOption> options = Collections.emptyList();
/**
* Request options
*/
@Nonnull public List<RequestOption> options = Collections.emptyList();
}

0 comments on commit a7a6569

Please sign in to comment.