Skip to content

BaseRequestConfiguration#options field is set to an immutable list #1238

@m-moris

Description

@m-moris

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();
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done ✔️

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions