mirror of
https://github.com/corda/corda.git
synced 2024-12-21 05:53:23 +00:00
Remove incorrect info that enums could not be evolved. (#4304)
This commit is contained in:
parent
dc1f5f0ccd
commit
95cf4d9310
@ -633,10 +633,3 @@ Although not strictly related to versioning, AMQP serialisation dictates that we
|
|||||||
wildcard
|
wildcard
|
||||||
* Any superclass must adhere to the same rules, but can be abstract
|
* Any superclass must adhere to the same rules, but can be abstract
|
||||||
* Object graph cycles are not supported, so an object cannot refer to itself, directly or indirectly
|
* Object graph cycles are not supported, so an object cannot refer to itself, directly or indirectly
|
||||||
|
|
||||||
Writing enums
|
|
||||||
~~~~~~~~~~~~~
|
|
||||||
Elements cannot be added to enums in a new version of the code. Hence, enums are only a good fit for genuinely static
|
|
||||||
data that will never change (e.g. days of the week). A ``Buy`` or ``Sell`` flag is another. However, something like
|
|
||||||
``Trade Type`` or ``Currency Code`` will likely change. For those, it is preferable to choose another representation,
|
|
||||||
such as a string.
|
|
||||||
|
Loading…
Reference in New Issue
Block a user