File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
memory/memory-core/src/test/java/org/apache/arrow/memory Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 2525import org .junit .jupiter .api .condition .EnabledForJreRange ;
2626
2727public 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
You can’t perform that action at this time.
0 commit comments