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?
|
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(); |
|
} |
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 tocom.microsoft.kiota.BaseRequestConfiguration#optionsIs 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