diff --git a/src/java.base/share/classes/java/nio/channels/Channels.java b/src/java.base/share/classes/java/nio/channels/Channels.java index fb113938d1d..0a52958b0c6 100644 --- a/src/java.base/share/classes/java/nio/channels/Channels.java +++ b/src/java.base/share/classes/java/nio/channels/Channels.java @@ -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. * * 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 * * @return A new reader + * + * @since 10 */ public static Reader newReader(ReadableByteChannel ch, Charset charset) { Objects.requireNonNull(charset, "charset"); @@ -613,6 +615,8 @@ public final class Channels { * The charset to be used * * @return A new writer + * + * @since 10 */ public static Writer newWriter(WritableByteChannel ch, Charset charset) { Objects.requireNonNull(charset, "charset"); diff --git a/src/java.base/share/classes/java/util/Formatter.java b/src/java.base/share/classes/java/util/Formatter.java index 14a850a24bd..3f37774469d 100644 --- a/src/java.base/share/classes/java/util/Formatter.java +++ b/src/java.base/share/classes/java/util/Formatter.java @@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -2299,6 +2299,8 @@ public final class Formatter implements Closeable, Flushable { * * @throws NullPointerException * if {@code fileName} or {@code charset} is {@code null}. + * + * @since 10 */ public Formatter(String fileName, Charset charset, Locale l) throws IOException { this(Objects.requireNonNull(charset, "charset"), l, new File(fileName)); @@ -2443,6 +2445,8 @@ public final class Formatter implements Closeable, Flushable { * * @throws NullPointerException * if {@code file} or {@code charset} is {@code null}. + * + * @since 10 */ public Formatter(File file, Charset charset, Locale l) throws IOException { this(Objects.requireNonNull(charset, "charset"), l, file); @@ -2560,6 +2564,8 @@ public final class Formatter implements Closeable, Flushable { * * @throws NullPointerException * if {@code os} or {@code charset} is {@code null}. + * + * @since 10 */ public Formatter(OutputStream os, Charset charset, Locale l) { this(l, new BufferedWriter(new OutputStreamWriter(os, charset)));