From b6f1049c4a4bd0ec6697598d65ba396b90c46619 Mon Sep 17 00:00:00 2001 From: JordonPhillips Date: Tue, 25 Aug 2020 15:08:11 -0700 Subject: [PATCH] Invert protocol utils function name --- .../amazon/smithy/go/codegen/integration/ProtocolUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/ProtocolUtils.java b/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/ProtocolUtils.java index 94751c1d0..b9505bd5c 100644 --- a/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/ProtocolUtils.java +++ b/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/ProtocolUtils.java @@ -164,12 +164,12 @@ public static void writeSafeMemberAccessor( } /** - * Determines whether a given shape will use a pointer when the shape is used as a union value. + * Determines whether a given shape will use a scalar when the shape is used as a union value. * * @param shape the shape to check - * @return true if the shape should use pointers + * @return false if the shape should use pointers */ - public static boolean usesPointerWhenUnionValue(Shape shape) { + public static boolean usesScalarWhenUnionValue(Shape shape) { return !(shape instanceof SimpleShape) || shape.isBlobShape() || shape.hasTrait(EnumTrait.class) || shape.hasTrait(StreamingTrait.class); }