mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8284893: Fix typos in java.base
Reviewed-by: iris, wetmore, lancea, mullan, naoto
This commit is contained in:
parent
4594696f54
commit
fb469fb894
162 changed files with 369 additions and 369 deletions
|
@ -176,7 +176,7 @@ import sun.nio.ch.DefaultSelectorProvider;
|
|||
* // optionally configure multicast TTL; the TTL defines the scope of a
|
||||
* // multicast datagram, for example, confining it to host local (0) or
|
||||
* // link local (1) etc...
|
||||
* int ttl = ...; // a number betwen 0 and 255
|
||||
* int ttl = ...; // a number between 0 and 255
|
||||
* sender.setOption(StandardSocketOptions.IP_MULTICAST_TTL, ttl);
|
||||
*
|
||||
* // send a packet to a multicast group
|
||||
|
|
|
@ -387,7 +387,7 @@ class Inet6Address extends InetAddress {
|
|||
holder6 = new Inet6AddressHolder();
|
||||
try {
|
||||
initif (hostName, addr, null);
|
||||
} catch (UnknownHostException e) {} /* cant happen if ifname is null */
|
||||
} catch (UnknownHostException e) {} /* can't happen if ifname is null */
|
||||
}
|
||||
|
||||
Inet6Address (String hostName, byte[] addr, NetworkInterface nif)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2022, 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
|
||||
|
@ -723,7 +723,7 @@ public final class URL implements java.io.Serializable {
|
|||
String protocol = uri.getScheme();
|
||||
|
||||
// In general we need to go via Handler.parseURL, but for the jrt
|
||||
// protocol we enforce that the Handler is not overrideable and can
|
||||
// protocol we enforce that the Handler is not overridable and can
|
||||
// optimize URI to URL conversion.
|
||||
//
|
||||
// Case-sensitive comparison for performance; malformed protocols will
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue