8326853: Missing @since
tags for Charset related methods added in Java 10
Reviewed-by: jlu, naoto
This commit is contained in:
parent
ce7ebaa606
commit
4d932d615c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2024, 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
|
||||||
@ -505,6 +505,8 @@ public final class Channels {
|
|||||||
* @param charset The charset to be used
|
* @param charset The charset to be used
|
||||||
*
|
*
|
||||||
* @return A new reader
|
* @return A new reader
|
||||||
|
*
|
||||||
|
* @since 10
|
||||||
*/
|
*/
|
||||||
public static Reader newReader(ReadableByteChannel ch, Charset charset) {
|
public static Reader newReader(ReadableByteChannel ch, Charset charset) {
|
||||||
Objects.requireNonNull(charset, "charset");
|
Objects.requireNonNull(charset, "charset");
|
||||||
@ -613,6 +615,8 @@ public final class Channels {
|
|||||||
* The charset to be used
|
* The charset to be used
|
||||||
*
|
*
|
||||||
* @return A new writer
|
* @return A new writer
|
||||||
|
*
|
||||||
|
* @since 10
|
||||||
*/
|
*/
|
||||||
public static Writer newWriter(WritableByteChannel ch, Charset charset) {
|
public static Writer newWriter(WritableByteChannel ch, Charset charset) {
|
||||||
Objects.requireNonNull(charset, "charset");
|
Objects.requireNonNull(charset, "charset");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* Copyright (c) 2023, Alibaba Group Holding Limited. All Rights Reserved.
|
* Copyright (c) 2023, Alibaba Group Holding Limited. 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.
|
||||||
*
|
*
|
||||||
@ -2299,6 +2299,8 @@ public final class Formatter implements Closeable, Flushable {
|
|||||||
*
|
*
|
||||||
* @throws NullPointerException
|
* @throws NullPointerException
|
||||||
* if {@code fileName} or {@code charset} is {@code null}.
|
* if {@code fileName} or {@code charset} is {@code null}.
|
||||||
|
*
|
||||||
|
* @since 10
|
||||||
*/
|
*/
|
||||||
public Formatter(String fileName, Charset charset, Locale l) throws IOException {
|
public Formatter(String fileName, Charset charset, Locale l) throws IOException {
|
||||||
this(Objects.requireNonNull(charset, "charset"), l, new File(fileName));
|
this(Objects.requireNonNull(charset, "charset"), l, new File(fileName));
|
||||||
@ -2443,6 +2445,8 @@ public final class Formatter implements Closeable, Flushable {
|
|||||||
*
|
*
|
||||||
* @throws NullPointerException
|
* @throws NullPointerException
|
||||||
* if {@code file} or {@code charset} is {@code null}.
|
* if {@code file} or {@code charset} is {@code null}.
|
||||||
|
*
|
||||||
|
* @since 10
|
||||||
*/
|
*/
|
||||||
public Formatter(File file, Charset charset, Locale l) throws IOException {
|
public Formatter(File file, Charset charset, Locale l) throws IOException {
|
||||||
this(Objects.requireNonNull(charset, "charset"), l, file);
|
this(Objects.requireNonNull(charset, "charset"), l, file);
|
||||||
@ -2560,6 +2564,8 @@ public final class Formatter implements Closeable, Flushable {
|
|||||||
*
|
*
|
||||||
* @throws NullPointerException
|
* @throws NullPointerException
|
||||||
* if {@code os} or {@code charset} is {@code null}.
|
* if {@code os} or {@code charset} is {@code null}.
|
||||||
|
*
|
||||||
|
* @since 10
|
||||||
*/
|
*/
|
||||||
public Formatter(OutputStream os, Charset charset, Locale l) {
|
public Formatter(OutputStream os, Charset charset, Locale l) {
|
||||||
this(l, new BufferedWriter(new OutputStreamWriter(os, charset)));
|
this(l, new BufferedWriter(new OutputStreamWriter(os, charset)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user