mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8241014: Miscellaneous typos in documentation comments
Reviewed-by: igerasim, prappo, psandoz, rriggs, weijun
This commit is contained in:
parent
c5a7490809
commit
17ff85d4ad
39 changed files with 104 additions and 107 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2020, 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
|
||||
|
@ -540,7 +540,7 @@ public final class FilePermission extends Permission implements Serializable {
|
|||
* If {@code jdk.io.permissionsUseCanonicalPath} is {@code true}, a
|
||||
* simple {@code cpath} is inside a wildcard {@code cpath} if and only if
|
||||
* after removing the base name (the last name in the pathname's name
|
||||
* sequence) from the former the remaining part equals to the latter,
|
||||
* sequence) from the former the remaining part is equal to the latter,
|
||||
* a simple {@code cpath} is recursively inside a wildcard {@code cpath}
|
||||
* if and only if the former starts with the latter.
|
||||
* <p>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2020, 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
|
||||
|
@ -62,7 +62,7 @@ public abstract class Reader implements Readable, Closeable {
|
|||
* effect.
|
||||
*
|
||||
* <p> While the stream is open, the {@code read()}, {@code read(char[])},
|
||||
* {@code read(char[], int, int)}, {@code read(Charbuffer)}, {@code
|
||||
* {@code read(char[], int, int)}, {@code read(CharBuffer)}, {@code
|
||||
* ready()}, {@code skip(long)}, and {@code transferTo()} methods all
|
||||
* behave as if end of stream has been reached. After the stream has been
|
||||
* closed, these methods all throw {@code IOException}.
|
||||
|
@ -183,7 +183,7 @@ public abstract class Reader implements Readable, Closeable {
|
|||
* @throws java.nio.ReadOnlyBufferException if target is a read only buffer
|
||||
* @since 1.5
|
||||
*/
|
||||
public int read(java.nio.CharBuffer target) throws IOException {
|
||||
public int read(CharBuffer target) throws IOException {
|
||||
int len = target.remaining();
|
||||
char[] cbuf = new char[len];
|
||||
int n = read(cbuf, 0, len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue