Skip to content

Add NullAway to javaagent-extension-api#17716

Open
zeitlinger wants to merge 1 commit intoopen-telemetry:mainfrom
zeitlinger:nullaway-extension-api
Open

Add NullAway to javaagent-extension-api#17716
zeitlinger wants to merge 1 commit intoopen-telemetry:mainfrom
zeitlinger:nullaway-extension-api

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

Part of #15991

Enables NullAway for the javaagent-extension-api module and adds required @Nullable annotations.

Files changed:

  • build.gradle.kts — enable otel.nullaway-conventions
  • AgentDistributionConfig.java@Nullable on @JsonProperty constructor params
  • SafeErasureMatcher.java@Nullable on safeAsErasure return
  • SafeHasSuperTypeMatcher.java@Nullable on safeGetSuperClass return, next field; throw NoSuchElementException in next() instead of returning null
  • Utils.java — null-check on e.getMessage() before string comparison

Depends on: no dependencies

Part of open-telemetry#15991

Enables NullAway for the javaagent-extension-api module and adds
required @nullable annotations to SafeErasureMatcher, SafeHasSuperTypeMatcher,
Utils, and AgentDistributionConfig.
@zeitlinger zeitlinger marked this pull request as ready for review April 9, 2026 10:03
@zeitlinger zeitlinger requested a review from a team as a code owner April 9, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant