harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r379186 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util: AbstractList.java Arrays.java LinkedList.java
Date Mon, 20 Feb 2006 18:02:24 GMT
Author: tellison
Date: Mon Feb 20 10:02:20 2006
New Revision: 379186

URL: http://svn.apache.org/viewcvs?rev=379186&view=rev
Log:
Mark some invariant fields as final.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractList.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Arrays.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedList.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractList.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractList.java?rev=379186&r1=379185&r2=379186&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractList.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractList.java
Mon Feb 20 10:02:20 2006
@@ -139,15 +139,15 @@
 	}
 
 	private static class SubAbstractList extends AbstractList {
-		private AbstractList fullList;
+		private final AbstractList fullList;
 
 		private int offset, size;
 
 		private static final class SubAbstractListIterator implements
 				ListIterator {
-			private SubAbstractList subList;
+			private final SubAbstractList subList;
 
-			private ListIterator iterator;
+			private final ListIterator iterator;
 
 			private int start, end;
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Arrays.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Arrays.java?rev=379186&r1=379185&r2=379186&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Arrays.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Arrays.java
Mon Feb 20 10:02:20 2006
@@ -29,7 +29,7 @@
 
 		private static final long serialVersionUID = -2764017481108945198L;
 
-		private Object[] a;
+		private final Object[] a;
 
 		ArrayList(Object[] storage) {
 			if (storage == null) {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedList.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedList.java?rev=379186&r1=379185&r2=379186&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedList.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/LinkedList.java
Mon Feb 20 10:02:20 2006
@@ -51,7 +51,7 @@
 	private static final class LinkIterator implements ListIterator {
 		int pos, expectedModCount;
 
-		LinkedList list;
+		final LinkedList list;
 
 		Link link, lastLink;
 



Mime
View raw message