From 510a0be792d6018cc7b6ef286712f00b007dfd0b Mon Sep 17 00:00:00 2001 From: Nadav Samet Date: Sun, 29 Sep 2024 19:39:47 -0700 Subject: [PATCH] Fix StructUtilsSpec call to toByteArray --- e2e/src/test/scala/scalapb/StructUtilsSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/src/test/scala/scalapb/StructUtilsSpec.scala b/e2e/src/test/scala/scalapb/StructUtilsSpec.scala index 7930e4f0c..6d68d6559 100644 --- a/e2e/src/test/scala/scalapb/StructUtilsSpec.scala +++ b/e2e/src/test/scala/scalapb/StructUtilsSpec.scala @@ -78,7 +78,7 @@ class StructUtilsSpec extends AnyFlatSpec with Matchers with EitherValues { Struct( Map( "optional_bytes" -> Value( - Value.Kind.StringValue(new String(Base64.getEncoder.encode(someBytesValue.toByteArray))) + Value.Kind.StringValue(new String(Base64.getEncoder.encode(someBytesValue.toByteArray()))) ) ) ) @@ -213,7 +213,7 @@ class StructUtilsSpec extends AnyFlatSpec with Matchers with EitherValues { Map( "optional_bytes" -> Value( Value.Kind.StringValue( - new String(Base64.getEncoder.encode(someBytesValue.toByteArray)) + new String(Base64.getEncoder.encode(someBytesValue.toByteArray())) ) ) )