You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2017/09/17 12:30:26 UTC
[myfaces-trinidad] 02/03: TRINIDAD-1915 - CheckedSerializationMap
check if delegate is Serializable
This is an automated email from the ASF dual-hosted git repository.
deki pushed a commit to branch 1.2.12.3.x-branch
in repository https://gitbox.apache.org/repos/asf/myfaces-trinidad.git
commit c85891b0c45ebb3567d42bb61d1a80da746a74e3
Author: Matthias Wessendorf <ma...@apache.org>
AuthorDate: Fri Sep 24 17:12:04 2010 +0000
TRINIDAD-1915 - CheckedSerializationMap check if delegate is Serializable
---
.../main/java/org/apache/myfaces/trinidad/util/CollectionUtils.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/CollectionUtils.java b/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/CollectionUtils.java
index d2af260..4febe33 100644
--- a/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/CollectionUtils.java
+++ b/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/CollectionUtils.java
@@ -1664,7 +1664,7 @@ public final class CollectionUtils
/**
* @param requireSerializable if <code>true</code>, require that all values in the map implement
* Serializable.
- * @param delegate
+ * @param delegate we do not check whether the delegate itself is Serializable. We just check its contents.
*/
public CheckedSerializationMap(
Map<K, V> delegate,
@@ -1673,9 +1673,6 @@ public final class CollectionUtils
if (delegate == null)
throw new NullPointerException();
- if (!(delegate instanceof Serializable))
- throw new IllegalArgumentException("Unserializable delegate");
-
_delegate = delegate;
_requireSerializable = requireSerializable;
}
--
To stop receiving notification emails like this one, please contact
"commits@myfaces.apache.org" <co...@myfaces.apache.org>.