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

@@ -92,7 +92,7 @@ public class FunctionProxyApplicationListener
String type = (properties.get("type") != null) ? properties.get("type")
: "function";
String lambda = properties.get("lambda");
Assert.notNull(lambda, String.format(
Assert.notNull(lambda, () -> String.format(
"The 'lambda' property is required for compiling Function: %s",
name));
String inputType = properties.get("inputType");