Skip to content

Commit

Permalink
Cherry-pick required label handling in JRuby field descriptor from bc…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangskz committed Mar 26, 2024
1 parent 4886a9c commit 2e51ff6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ protected FieldDescriptor getDescriptor() {
private void calculateLabel(ThreadContext context) {
if (descriptor.isRepeated()) {
this.label = context.runtime.newSymbol("repeated");
} else if (descriptor.isRequired()) {
this.label = context.runtime.newSymbol("required");
} else if (descriptor.isOptional()) {
this.label = context.runtime.newSymbol("optional");
} else {
Expand Down

0 comments on commit 2e51ff6

Please sign in to comment.