Commit 549b83b
Annotate Java CopilotRequestContext.sessionId() as @nullable
sessionId() returns null when the request was issued outside any session,
but the nullability was only documented in the Javadoc. Every other SDK makes
this explicit in the type system (TypeScript string?, Python str | None,
.NET string?, Rust Option<String>). Add @nullable from the already-declared
spotbugs-annotations dependency on the field, constructor parameter, and getter
so SpotBugs and IDEs surface null-safety warnings, aligning Java with the other
SDKs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d05e86c commit 549b83b
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
0 commit comments