changeset 15787:65042b713b12

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 83d6bce162ea
children 2da036638f63
files src/java.base/share/classes/java/util/ArrayList.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/util/ArrayList.java	Wed Oct 05 09:52:55 2016 -0700
+++ b/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() {