JDK 9 RFR(xs): 8180137: fix broken link in java.lang.Iterable

Stuart Marks stuart.marks at oracle.com
Fri May 12 15:19:33 UTC 2017


Hi all,

Another quick doc change. This one removes a link from Iterable to 
technotes/guides and adjusts adjacent wording to match. Patch below.

Bug link: https://bugs.openjdk.java.net/browse/JDK-8180137

Thanks,

s'marks

# HG changeset patch
# User smarks
# Date 1494544788 25200
#      Thu May 11 16:19:48 2017 -0700
# Node ID cfff17f92ff2422ea4c576835b90cc16f0e3d805
# Parent  a3af889e7f6591e4c00d79ce454f6725cba19eb6
8180137: fix broken link in java.lang.Iterable
Reviewed-by: XXX

diff -r a3af889e7f65 -r cfff17f92ff2 
src/java.base/share/classes/java/lang/Iterable.java
--- a/src/java.base/share/classes/java/lang/Iterable.java	Wed May 10 15:59:15 
2017 -0700
+++ b/src/java.base/share/classes/java/lang/Iterable.java	Thu May 11 16:19:48 
2017 -0700
@@ -31,16 +31,13 @@
  import java.util.function.Consumer;

  /**
- * Implementing this interface allows an object to be the target of
- * the "for-each loop" statement. See
- * <strong>
- * <a href="{@docRoot}/../technotes/guides/language/foreach.html">For-each Loop</a>
- * </strong>
+ * Implementing this interface allows an object to be the target of the enhanced
+ * {@code for} statement (sometimes called the "for-each loop" statement).
   *
   * @param <T> the type of elements returned by the iterator
   *
   * @since 1.5
- * @jls 14.14.2 The enhanced for statement
+ * @jls 14.14.2 The enhanced {@code for} statement
   */
  public interface Iterable<T> {
      /**


More information about the core-libs-dev mailing list