gnodet opened a new pull request, #23304:
URL: https://github.com/apache/camel/pull/23304

   [CAMEL-23542](https://issues.apache.org/jira/browse/CAMEL-23542)
   
   Follow-up to #23289.
   
   ## Summary
   
   The revert in #23289 correctly removed the `Objects.requireNonNull()` 
runtime checks that broke 3 tests, but also removed the `@Nullable` JSpecify 
annotations. This PR restores them to accurately document the nullability 
contracts:
   
   - **`ValidationException`**: `exchange` and `message` parameters are 
nullable — callers pass null exchange in tests, and `e.getMessage()` returns 
null
   - **`CamelExchangeException`**: `message` parameter is nullable — consistent 
with `createExceptionMessage()` which already accepts `@Nullable String message`
   - **`RestConfiguration.setValidationLevels`**: parameter is nullable — 
consistent with the field and getter which are already `@Nullable`
   
   _Claude Code on behalf of Guillaume Nodet_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to