From 83bfe2d6de39d271ace473496588920f0896e275 Mon Sep 17 00:00:00 2001 From: Megrez Lu Date: Mon, 30 Jan 2023 15:29:36 +0800 Subject: [PATCH] fix long rendering in io.envoyproxy.pgv.TimestampValidation.toDuration/toTimestamp --- templates/java/register.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/java/register.go b/templates/java/register.go index 9ebaaa817..8f6de1faa 100644 --- a/templates/java/register.go +++ b/templates/java/register.go @@ -466,13 +466,13 @@ func (fns javaFuncs) byteArrayLit(bytes []uint8) string { func (fns javaFuncs) durLit(dur *durationpb.Duration) string { return fmt.Sprintf( - "io.envoyproxy.pgv.TimestampValidation.toDuration(%d,%d)", + "io.envoyproxy.pgv.TimestampValidation.toDuration(%dL,%d)", dur.GetSeconds(), dur.GetNanos()) } func (fns javaFuncs) tsLit(ts *timestamppb.Timestamp) string { return fmt.Sprintf( - "io.envoyproxy.pgv.TimestampValidation.toTimestamp(%d,%d)", + "io.envoyproxy.pgv.TimestampValidation.toTimestamp(%dL,%d)", ts.GetSeconds(), ts.GetNanos()) }