Skip to content

Commit 115e465

Browse files
committed
spotless: fix in test
1 parent 03c7648 commit 115e465

File tree

1 file changed

+2
-5
lines changed
  • memory/memory-core/src/test/java/org/apache/arrow/memory

1 file changed

+2
-5
lines changed

memory/memory-core/src/test/java/org/apache/arrow/memory/TestOpens.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@
2525
import org.junit.jupiter.api.condition.EnabledForJreRange;
2626

2727
public class TestOpens {
28-
/** Accessing MemoryUtil.directBuffer should fail as add-opens is not configured */
28+
/** Accessing MemoryUtil.directBuffer should fail as add-opens is not configured. */
2929
@Test
3030
@EnabledForJreRange(min = JAVA_16)
3131
public void testMemoryUtilFailsLoudly() {
3232
// This test is configured by Maven to run WITHOUT add-opens. So this should fail on JDK16+
3333
// (where JEP396 means that add-opens is required to access JDK internals).
3434
// The test will likely fail in your IDE if it doesn't correctly pick this up.
35-
Throwable e =
36-
assertThrows(
37-
Throwable.class,
38-
() -> MemoryUtil.directBuffer(0, 10));
35+
Throwable e = assertThrows(Throwable.class, () -> MemoryUtil.directBuffer(0, 10));
3936
boolean found = false;
4037
while (e != null) {
4138
if (e instanceof UnsupportedOperationException

0 commit comments

Comments
 (0)