This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-resolver.git
commit 0a21d03ade5863cb8064ae208baf033a1577df5e Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Sun Nov 8 19:57:25 2026 +0100 Say that Files.write writes the array once in the writeBytes deprecation note --- .../main/java/org/eclipse/aether/internal/test/util/TestFileUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileUtils.java b/maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileUtils.java index a833d0b9a..b75ebbe00 100644 --- a/maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileUtils.java +++ b/maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileUtils.java @@ -238,7 +238,8 @@ public class TestFileUtils { * @param pattern the bytes to repeat * @param repeat how many times the pattern is written * @throws IOException if an I/O error occurs - * @deprecated use {@code Files.write(Path, byte[])} instead + * @deprecated use {@code Files.write(Path, byte[])} instead; it writes the array once, so for + * {@code repeat > 1} build the repeated bytes first */ @Deprecated public static void writeBytes(File file, byte[] pattern, int repeat) throws IOException {
