Skip to content
Snippets Groups Projects
Commit d0c66acd authored by buczekp's avatar buczekp
Browse files

minor: improved interface

SVN: 18949
parent 0a76e344
No related branches found
No related tags found
No related merge requests found
...@@ -54,10 +54,10 @@ public class ReflectingStringEscaper ...@@ -54,10 +54,10 @@ public class ReflectingStringEscaper
* a deep copy of original bean with all the string fields on the bean and all fields of objects * a deep copy of original bean with all the string fields on the bean and all fields of objects
* referred to by the bean escaped. * referred to by the bean escaped.
* <p> * <p>
* NOTE: The provided <code>bean</code> and all beans it referrs to should be * NOTE: If serialization of the provided <code>bean</code> fails the result will not be
* {@link Serializable}, otherwise the result will not be escaped. * escaped.
*/ */
public static <T> T escapeDeepWithCopy(T bean) public static <T extends Serializable> T escapeDeepWithCopy(T bean)
{ {
try try
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment