harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r375394 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedHashSet.java
Date Mon, 06 Feb 2006 22:01:00 GMT
Author: tellison
Date: Mon Feb  6 14:00:59 2006
New Revision: 375394

URL: http://svn.apache.org/viewcvs?rev=375394&view=rev
Log:
Fix for HARMONY-77 (serialVersionUID is missed in java.util.LinkedHashSet)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedHashSet.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedHashSet.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedHashSet.java?rev=375394&r1=375393&r2=375394&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedHashSet.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedHashSet.java
Mon Feb  6 14:00:59 2006
@@ -19,12 +19,19 @@
 import java.io.Serializable;
 
 /**
- * LinkedHashSet
- * 
+ * LinkedHashSet is a variant on HashSet. Its entries are kept in a doubly-linked list.
+ * The iteration order is the order in which entries were inserted.
+ * <p>
+ * Null elements are allowed, and all the optional Set operations are supported.
+ * <p>
+ * Like HashSet, LinkedHashSet is not thread safe, so access by multiple threads must be
synchronized
+ * by an external mechanism such as Collections.synchronizedSet.
  */
 public class LinkedHashSet extends HashSet implements Set, Cloneable,
 		Serializable {
 	
+	private static final long serialVersionUID = -2851667679971038690L;
+
 	/**
 	 * Contructs a new empty instance of LinkedHashSet.
 	 */



Mime
View raw message