GH-1234 Add delegation to existing shouldFailIfCantConvert(..)
This ensures that if Throwable is not provided it can fal back to already implemented method
This commit is contained in:
@@ -44,6 +44,9 @@ public interface MessageConverterHelper {
|
||||
* @return true if conversion failure must be considered fatal.
|
||||
*/
|
||||
default boolean shouldFailIfCantConvert(Message<?> message, Throwable t) {
|
||||
if (t == null) {
|
||||
return this.shouldFailIfCantConvert(message);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user