Skip to content

Commit

Permalink
use supplier
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Dec 6, 2023
1 parent 4212656 commit 30cf9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/Writers/Java/CodeMethodWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ private static void WriteSerializationRegistration(HashSet<string> serialization
{
if (serializationModules != null)
foreach (var module in serializationModules)
writer.WriteLine($"ApiClientBuilder.{methodName}(new {module}());");
writer.WriteLine($"ApiClientBuilder.{methodName}(() -> new {module}());");
}
private void WriteConstructorBody(CodeClass parentClass, CodeMethod currentMethod, LanguageWriter writer, bool inherits)
{
Expand Down

0 comments on commit 30cf9c5

Please sign in to comment.