8167005: Comment on the need for an empty constructor in ArrayList$Itr
authorredestad
Thu, 06 Oct 2016 02:02:48 +0200
changeset 41370 5afe61bd32ea
parent 41369 1b1baa484935
child 41371 8bbb518ca07f
8167005: Comment on the need for an empty constructor in ArrayList$Itr Reviewed-by: smarks, shade, chegar
jdk/src/java.base/share/classes/java/util/ArrayList.java
--- a/jdk/src/java.base/share/classes/java/util/ArrayList.java	Wed Oct 05 09:52:55 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/ArrayList.java	Thu Oct 06 02:02:48 2016 +0200
@@ -876,6 +876,7 @@
         int lastRet = -1; // index of last element returned; -1 if no such
         int expectedModCount = modCount;
 
+        // prevent creating a synthetic constructor
         Itr() {}
 
         public boolean hasNext() {