changeset 41370:5afe61bd32ea

8167005: Comment on the need for an empty constructor in ArrayList$Itr Reviewed-by: smarks, shade, chegar
author redestad
date Thu, 06 Oct 2016 02:02:48 +0200
parents 1b1baa484935
children 8bbb518ca07f
files jdk/src/java.base/share/classes/java/util/ArrayList.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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() {