-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
I encountered the following error while using Graph SDK for Java. Upon investigating the cause, I found that an immutable object from Collections.emptyList() was assigned to com.microsoft.kiota.BaseRequestConfiguration#options
Is it possible to change this initial value to a mutable list? Is there any specific reason why an immutable list is being actively used?
kiota-java/components/abstractions/src/main/java/com/microsoft/kiota/BaseRequestConfiguration.java
Lines 11 to 28 in 5079c15
| public abstract class BaseRequestConfiguration { | |
| /** | |
| * Default constructor | |
| */ | |
| public BaseRequestConfiguration() { | |
| // default empty constructor | |
| } | |
| /** | |
| * Request headers | |
| */ | |
| @Nonnull public RequestHeaders headers = new RequestHeaders(); | |
| /** | |
| * Request options | |
| */ | |
| @Nonnull public List<RequestOption> options = Collections.emptyList(); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done ✔️