Skip to content

Commit 93ad7b6

Browse files
committed
Removed unnecessary parameter to Class.getMethod
As per marianobarrios/tls-channel@f6702ed. JAVA-4309
1 parent ac0fbac commit 93ad7b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

driver-core/src/main/com/mongodb/internal/connection/tlschannel/util/DirectBufferDeallocator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ private static class Java8Deallocator implements Deallocator {
5050

5151
Java8Deallocator() {
5252
try {
53-
cleanerAccessor =
54-
Class.forName("sun.nio.ch.DirectBuffer").getMethod("cleaner", (Class<?>[]) null);
53+
cleanerAccessor = Class.forName("sun.nio.ch.DirectBuffer").getMethod("cleaner");
5554
clean = Class.forName("sun.misc.Cleaner").getMethod("clean");
5655
} catch (NoSuchMethodException | ClassNotFoundException t) {
5756
throw new RuntimeException(t);

0 commit comments

Comments
 (0)