From 8127354b65b0955d61b901fab1ba8d1176192b31 Mon Sep 17 00:00:00 2001 From: Markus Paulsen Date: Fri, 6 Dec 2024 11:21:58 +0100 Subject: [PATCH] Fixed FileChannel.open --- .../architectureTests/fileSystem/FileSystemAccessPenguin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/de/tum/cit/ase/ares/integration/testuser/subject/architectureTests/fileSystem/FileSystemAccessPenguin.java b/src/test/java/de/tum/cit/ase/ares/integration/testuser/subject/architectureTests/fileSystem/FileSystemAccessPenguin.java index ea40ab50..20934da5 100644 --- a/src/test/java/de/tum/cit/ase/ares/integration/testuser/subject/architectureTests/fileSystem/FileSystemAccessPenguin.java +++ b/src/test/java/de/tum/cit/ase/ares/integration/testuser/subject/architectureTests/fileSystem/FileSystemAccessPenguin.java @@ -123,7 +123,7 @@ public static void accessFileSystemViaInputStreamReader() throws IOException { * Access the file system using the {@link FileChannel} class for reading. */ public static void accessFileSystemViaFileChannelRead() throws IOException { - FileChannel fileChannel = FileChannel.open(Path.of("pom123.xml")); + FileChannel fileChannel = FileChannel.open(Path.of("pom123.xml"), StandardOpenOption.READ); fileChannel.read(ByteBuffer.allocate(10)); }