Commit 9c0e6c5
committed
fix: resolve NullAway violations after rebase onto main
- AgentStarterImpl: add @nullable to two ClassFileTransformer.transform
methods that can return null, matching the existing pattern on the
sibling LaunchHelperClassFileTransformer.
- HelperInjector: guard null helpersSource with requireNonNull at the
call into HelperClassDefinition.create, which delegates to
BytecodeWithUrl.create (rejects null with IllegalArgumentException).
The message documents the runtime contract: null helpersSource is
only valid when helperClassNames is empty.
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>1 parent c23e9d2 commit 9c0e6c5
2 files changed
Lines changed: 7 additions & 1 deletion
File tree
- javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling
- muzzle/src/main/java/io/opentelemetry/javaagent/tooling
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
| |||
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| 299 | + | |
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
0 commit comments