microsoftgraph / microsoftgraph/msgraph-sdk-java
GetRequestConfiguration.queryParameters is wrongly annotated as Nullable
オープン
まだ誰も着手していません。
status:waiting-for-triage
type:bug
- 主要言語
- Java
- スター
- 444
- フォーク
- 154
- 平均マージ
- 18時間 28分
- マージ済み PR(30日)
- 4
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
com.microsoft.graph.users.UsersRequestBuilder.GetRequestConfiguration から始めて、queryParameters のアノテーションを確認します。再現用スニペットを使って生成された SDK の動作と IntelliJ の警告を検証します。queryParameters が IDE の警告なしで non-null として表現されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100