Fix IMPORTANT block for deserialization in Docs

The IMPORTANT block must be wrapped with `====`

**Cherry-pick to 1.7.x, 1.6.x & 1.5.x**

(cherry picked from commit 8bf6d2d)
This commit is contained in:
Artem Bilan
2017-09-21 12:48:32 -04:00
parent 21a9efc438
commit 7236e4e02e

View File

@@ -56,8 +56,8 @@ Those properties can also be extended with user-defined 'headers' by calling the
key, Object value)` method.
[IMPORTANT]
----
Starting with versions `1.5.7, 1.6.11, 1.7.4, 2.0.0`, if a message body is a serialized `Serializable` java object, it is no longer deserialized (by default) when performing `toString()` operations (such as in log messages).
====
Starting with versions `1.5.7`, `1.6.11`, `1.7.4`, `2.0.0`, if a message body is a serialized `Serializable` java object, it is no longer deserialized (by default) when performing `toString()` operations (such as in log messages).
This is to prevent unsafe deserialization.
By default, only `java.util` and `java.lang` classes are deserialized.
To revert to the previous behavior, you can add allowable class/package patterns by invoking `Message.addWhiteListPatterns(...)`.