microsoftgraph / microsoftgraph/msgraph-sdk-java
GetRequestConfiguration.queryParameters is wrongly annotated as Nullable
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 444
- Forks
- 154
- Avg merge
- 18h 28m
- Merged PRs (30d)
- 4
Description
Describe the bug
com.microsoft.graph.users.UsersRequestBuilder.GetRequestConfiguration#queryParameters is annotated as @Nullable, giving an IDE warning. However, it is always initialized to a non-null value.
_graphClient.users().get(config -> {
config.queryParameters.select = new String[] { ... };
// ^^^^^^^^^^^^^^^^^^^ Warning here, because it might be null
});
Expected behavior
No IDE warning.
How to reproduce
Install SDK in IntelliJ and past the above code.
SDK Version
6.26.0
Latest version known to work for scenario above?
No response
Known Workarounds
Silence IDE warning for that line.
Debug output
No response
Configuration
No response
Other information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with com.microsoft.graph.users.UsersRequestBuilder.GetRequestConfiguration and inspect the annotation on queryParameters. Verify the generated SDK behavior and IntelliJ warning using the reproduction snippet; done means queryParameters is represented as non-null without an IDE warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100