mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 18:29:45 +02:00
Update documentation and README.md
This commit is contained in:
parent
24d2b0b0b9
commit
e126469003
4 changed files with 9 additions and 11 deletions
|
@ -4,12 +4,13 @@ General Rules
|
|||
All classes which subclass `TopLevelStreamElement` and `ExtensionElement` must either
|
||||
|
||||
1. be immutable (and ideally provide a Builder)
|
||||
2. implemented `TypedCloneable`
|
||||
2. implement `TypedCloneable`
|
||||
|
||||
and must be `Serializable`.
|
||||
The reason that it must be either 1. or 2. is that it makes no sense to clone an inmutable instance.
|
||||
The preferred option is 1.
|
||||
|
||||
Note that there is legacy code in Smack which does not follow these rules. Patches welcome.
|
||||
Note that there is legacy code in Smack which does not follow these rules. Patches are welcome.
|
||||
|
||||
ExtensionElement
|
||||
================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue