davsclaus commented on code in PR #23021:
URL: https://github.com/apache/camel/pull/23021#discussion_r3206810686
##########
core/camel-api/src/main/java/org/apache/camel/spi/BulkTypeConverters.java:
##########
@@ -91,7 +95,8 @@ default <T> T tryConvertTo(Class<?> from, Class<T> to,
Exchange exchange, Object
* @throws TypeConversionException is thrown if error during
type conversion
* @throws NoTypeConversionAvailableException if no type converters exists
to convert to the given type
*/
- default <T> T mandatoryConvertTo(Class<?> from, Class<T> to, Exchange
exchange, Object value)
+ @SuppressWarnings("NullAway")
+ default <T> T mandatoryConvertTo(Class<?> from, Class<T> to, @Nullable
Exchange exchange, @Nullable Object value)
throws TypeConversionException, NoTypeConversionAvailableException
{
Object t = convertTo(from, to, exchange, value);
Review Comment:
the value is not null - you cannot converter a null value so this should be
changed
--
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]