Performance improvements

Avoid generating strings and implicit toString() calls that will be garbage most of the time.
This commit is contained in:
ue85540
2021-11-05 09:53:26 +01:00
parent 90cec8e350
commit f2193c95d5
3 changed files with 3 additions and 3 deletions

View File

@@ -1040,7 +1040,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
if (this.isWrapConvertedInputInMessage(convertedInput)) {
convertedInput = MessageBuilder.withPayload(convertedInput).build();
}
Assert.notNull(convertedInput, "Failed to convert input: " + input + " to " + type);
Assert.notNull(convertedInput, () -> "Failed to convert input: " + input + " to " + type);
return convertedInput;
}