mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 21:48:36 +03:00
Added Java Thrift SetDefaultEnumValue Annotation
Summary: Synced to internal group post (View Butterfly Rule): https://fb.workplace.com/groups/120844258624995/?post_id=1393921887983886 Added an annotation named strict behavior here to offer an option to use a default value. Reviewed By: avalonalex, prakashgayasen Differential Revision: D61163843 fbshipit-source-id: 00c49ace61ca152902f937a2597dfcc44dbfe3b8
This commit is contained in:
parent
f5675f425f
commit
6fe9799c88
@ -78,3 +78,10 @@ struct Recursive {}
|
|||||||
// behavior is correct to begin with.
|
// behavior is correct to begin with.
|
||||||
@scope.Field
|
@scope.Field
|
||||||
struct FieldUseUnmangledName {}
|
struct FieldUseUnmangledName {}
|
||||||
|
|
||||||
|
//In some case, due to client and server's thrift definitions out of sync,
|
||||||
|
//when thrift runtime deserialize a message it encountered a value not definded in definitions, and it
|
||||||
|
//returns null which cause some confusions.
|
||||||
|
//We set an annotation named UseIntrinsicDefault here to offer an option to use a default value when the null is received.
|
||||||
|
@scope.Enum
|
||||||
|
struct UseIntrinsicDefault {}
|
||||||
|
Loading…
Reference in New Issue
Block a user