harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r385529 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IdentityHashMap.java
Date Mon, 13 Mar 2006 12:14:22 GMT
Author: tellison
Date: Mon Mar 13 04:14:20 2006
New Revision: 385529

URL: http://svn.apache.org/viewcvs?rev=385529&view=rev
Log:
Declare invariant fields as final.

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IdentityHashMap.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IdentityHashMap.java?rev=385529&r1=385528&r2=385529&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IdentityHashMap.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IdentityHashMap.java
Mon Mar 13 04:14:20 2006
@@ -111,11 +111,11 @@
 		// the position of the entry that was last returned from next()
 		private int lastPosition = 0;
 
-		IdentityHashMap associatedMap;
+		final IdentityHashMap associatedMap;
 
 		int expectedModCount;
 
-		MapEntry.Type type;
+		final MapEntry.Type type;
 
 		boolean canRemove = false;
 
@@ -165,7 +165,7 @@
 	}
 
 	static class IdentityHashMapEntrySet extends AbstractSet {
-		private IdentityHashMap associatedMap;
+		private final IdentityHashMap associatedMap;
 
 		public IdentityHashMapEntrySet(IdentityHashMap hm) {
 			associatedMap = hm;



Mime
View raw message