Skip to content

Commit

Permalink
Remove unnecesary null parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
marianobarrios committed Sep 27, 2021
1 parent f39c79c commit 3f0888d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/tlschannel/util/DirectBufferDeallocator.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ private static class Java8Deallocator implements Deallocator {

Java8Deallocator() {
try {
cleanerAccessor =
Class.forName("sun.nio.ch.DirectBuffer").getMethod("cleaner", (Class<?>[]) null);
cleanerAccessor = Class.forName("sun.nio.ch.DirectBuffer").getMethod("cleaner");
clean = Class.forName("sun.misc.Cleaner").getMethod("clean");
} catch (NoSuchMethodException | ClassNotFoundException t) {
throw new RuntimeException(t);
Expand Down

0 comments on commit 3f0888d

Please sign in to comment.