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); }