From d0c66acd110ed6155f42b14b3494f4519a59535c Mon Sep 17 00:00:00 2001
From: buczekp <buczekp>
Date: Wed, 1 Dec 2010 08:50:40 +0000
Subject: [PATCH] minor: improved interface

SVN: 18949
---
 .../cisd/common/utilities/ReflectingStringEscaper.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/source/java/ch/systemsx/cisd/common/utilities/ReflectingStringEscaper.java b/common/source/java/ch/systemsx/cisd/common/utilities/ReflectingStringEscaper.java
index ba428472083..8020ded1812 100644
--- a/common/source/java/ch/systemsx/cisd/common/utilities/ReflectingStringEscaper.java
+++ b/common/source/java/ch/systemsx/cisd/common/utilities/ReflectingStringEscaper.java
@@ -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
      * referred to by the bean escaped.
      * <p>
-     * NOTE: The provided <code>bean</code> and all beans it referrs to should be
-     * {@link Serializable}, otherwise the result will not be escaped.
+     * NOTE: If serialization of the provided <code>bean</code> fails the result will not be
+     * escaped.
      */
-    public static <T> T escapeDeepWithCopy(T bean)
+    public static <T extends Serializable> T escapeDeepWithCopy(T bean)
     {
         try
         {
-- 
GitLab