1
0
Fork 0
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:
Florian Schmaus 2015-03-13 16:27:50 +01:00
parent 24d2b0b0b9
commit e126469003
4 changed files with 9 additions and 11 deletions

View file

@ -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
================