Skip to content

Commit

Permalink
Invert protocol utils function name
Browse files Browse the repository at this point in the history
  • Loading branch information
JordonPhillips committed Aug 25, 2020
1 parent 6ab24b5 commit b6f1049
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b6f1049

Please sign in to comment.