Skip to content

Commit

Permalink
Default to "UNRECOGNIZED" when using toString() of Type enums
Browse files Browse the repository at this point in the history
Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
  • Loading branch information
danilo-delbusso committed Jul 31, 2024
1 parent 39199a5 commit eb34314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocaml/sdk-gen/java/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ let gen_enum file name ls =
)
ls ;
fprintf file " /* This can never be reached */\n" ;
fprintf file " return \"illegal enum\";\n" ;
fprintf file " return \"UNRECOGNIZED\";\n" ;
fprintf file " }\n" ;
fprintf file "\n }\n\n"

Expand Down

0 comments on commit eb34314

Please sign in to comment.