8215912: Various Typos in java.net Method Documentation

Reviewed-by: coffeys
This commit is contained in:
Roger Calnan 2019-01-03 17:46:09 +00:00 committed by Sean Coffey
parent 5d8b0c4814
commit edb879df0d
3 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -531,7 +531,7 @@ class InetAddress implements java.io.Serializable {
* @param timeout the time, in milliseconds, before the call aborts * @param timeout the time, in milliseconds, before the call aborts
* @throws IllegalArgumentException if either {@code timeout} * @throws IllegalArgumentException if either {@code timeout}
* or {@code ttl} are negative. * 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 * @throws IOException if a network error occurs
* @since 1.5 * @since 1.5
*/ */

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -1102,7 +1102,7 @@ class Socket implements java.io.Closeable {
* Tests if {@link SocketOptions#SO_OOBINLINE SO_OOBINLINE} is enabled. * Tests if {@link SocketOptions#SO_OOBINLINE SO_OOBINLINE} is enabled.
* *
* @return a {@code boolean} indicating whether or not * @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 * @exception SocketException if there is an error
* in the underlying protocol, such as a TCP error. * in the underlying protocol, such as a TCP error.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -681,7 +681,7 @@ public abstract class URLConnection {
/** /**
* Returns the value for the {@code n}<sup>th</sup> header field. * Returns the value for the {@code n}<sup>th</sup> header field.
* It returns {@code null} if there are fewer than * It returns {@code null} if there are fewer than
* {@code n+1}fields. * {@code n+1} fields.
* <p> * <p>
* This method can be used in conjunction with the * This method can be used in conjunction with the
* {@link #getHeaderFieldKey(int) getHeaderFieldKey} method to iterate through all * {@link #getHeaderFieldKey(int) getHeaderFieldKey} method to iterate through all