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 9c69c333bb
commit f000736140
3 changed files with 3 additions and 3 deletions

View File

@@ -354,7 +354,7 @@ public class MessageHandlingHelper<T extends GeneratedMessageV3> implements Smar
functionDefinition = (String) headers.get(FunctionProperties.FUNCTION_DEFINITION);
}
FunctionInvocationWrapper function = this.functionCatalog.lookup(functionDefinition, "application/json");
Assert.notNull(function, "Failed to lookup function " + funcProperties.getDefinition());
Assert.notNull(function, () -> "Failed to lookup function " + funcProperties.getDefinition());
return function;
}
}