Feature Request: Annotate nullability
還沒有人認領這個 Issue。
評估
研究方向
Start with HidSharp/Platform/Linux/LinuxHidDevice.cs around lines 120-124 and inspect the HidDevice API properties that expose strings or other nullable values. Compare the issue's two annotation options against the project's target framework and existing API conventions. Done means the public API clearly communicates which values can return null, consistently across the relevant devices and platforms.
由索引模型根據 Issue 內容生成。
描述
As a consumer, it can be a bit unclear knowing what can return null.
If I set my IDE to pessimistic null analysis, I get potential null reference warnings in many locations, such as all string properties for HidDevice, even for properties that seemingly cannot return null:
It would be helpful to annotate this in the API, either using C#'s own #nullable feature, or by using JetBrains Annotations.
- 主要語言
- C#
- 星號
- 13
- 分支
- 17
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
OpenTabletDriver/HIDSharpCore 的其他 Issue
-
.NET 8.0 EOL imminent: Bump .NET to 10.0可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 4/5 3-5 天 新手友好度 25/100
OpenTabletDriver/HIDSharpCore#26 · 2 則留言 · 2 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 25/100
查看 OpenTabletDriver/HIDSharpCore 的全部 Issue
相似的 Issue
-
track:release
難度 2/5 1-3 小時 新手友好度 80/100
-
[Bug] [Go] Ack returns nil when the server answers with a non-OK status可能已有人在做 @leizhiyuan 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
apache/rocketmq-clients#1465 ·
維護者通常 2 天內回覆
-
fix(testing): HeadlessTerminal disposes services synchronously可能已有人在做 @zidad 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 69/100
RazorConsole/RazorConsole#388 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 72/100
starlinghq/starling#209 ·
維護者通常 1 天內回覆