Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8215912

Various Typos in java.net Method Documentation

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • Verification:
      Not verified

      Description

      https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/InetAddress.html#isReachable(java.net.NetworkInterface,int,int)
      https://hg.openjdk.java.net/jdk/jdk/file/abe21b82ff7c/src/java.base/share/classes/java/net/InetAddress.java#l534

      diff -r abe21b82ff7c src/java.base/share/classes/java/net/InetAddress.java
      --- a/src/java.base/share/classes/java/net/InetAddress.java Mon Dec 24 12:18:40 2018 +0530
      +++ b/src/java.base/share/classes/java/net/InetAddress.java Mon Dec 24 12:04:57 2018 -0800
      @@ -531,7 +531,7 @@
            * @param timeout the time, in milliseconds, before the call aborts
            * @throws IllegalArgumentException if either {@code timeout}
            * or {@code ttl} are negative.
      - * @return a {@code boolean}indicating if the address is reachable.
      + * @return a {@code boolean} indicating if the address is reachable.
            * @throws IOException if a network error occurs
            * @since 1.5
            */

      https://hg.openjdk.java.net/jdk/jdk/file/abe21b82ff7c/src/java.base/share/classes/java/net/Socket.java#l1105
      https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#getOOBInline()

      diff -r abe21b82ff7c src/java.base/share/classes/java/net/Socket.java
      --- a/src/java.base/share/classes/java/net/Socket.java Mon Dec 24 12:18:40 2018 +0530
      +++ b/src/java.base/share/classes/java/net/Socket.java Mon Dec 24 12:04:57 2018 -0800
      @@ -1102,7 +1102,7 @@
            * Tests if {@link SocketOptions#SO_OOBINLINE SO_OOBINLINE} is enabled.
            *
            * @return a {@code boolean} indicating whether or not
      - * {@link SocketOptions#SO_OOBINLINE SO_OOBINLINE}is enabled.
      + * {@link SocketOptions#SO_OOBINLINE SO_OOBINLINE} is enabled.
            *
            * @exception SocketException if there is an error
            * in the underlying protocol, such as a TCP error.


      https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getHeaderField(int)
      https://hg.openjdk.java.net/jdk/jdk/file/abe21b82ff7c/src/java.base/share/classes/java/net/URLConnection.java#l684

      diff -r abe21b82ff7c src/java.base/share/classes/java/net/URLConnection.java
      --- a/src/java.base/share/classes/java/net/URLConnection.java Mon Dec 24 12:18:40 2018 +0530
      +++ b/src/java.base/share/classes/java/net/URLConnection.java Mon Dec 24 12:04:57 2018 -0800
      @@ -1,5 +1,5 @@
       /*
      - * Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
      + * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved.
        * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
        *
        * This code is free software; you can redistribute it and/or modify it
      @@ -681,7 +681,7 @@
           /**
            * Returns the value for the {@code n}<sup>th</sup> header field.
            * It returns {@code null} if there are fewer than
      - * {@code n+1}fields.
      + * {@code n+1} fields.
            * <p>
            * This method can be used in conjunction with the
            * {@link #getHeaderFieldKey(int) getHeaderFieldKey} method to iterate through all

        Attachments

          Activity

            People

            • Assignee:
              rcalnan Roger Calnan
              Reporter:
              rcalnan Roger Calnan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: