diff --git a/community/io/src/main/java/org/neo4j/io/mem/GrabAllocator.java b/community/io/src/main/java/org/neo4j/io/mem/GrabAllocator.java index b75dde2d71cb5..b8c249b9451c0 100644 --- a/community/io/src/main/java/org/neo4j/io/mem/GrabAllocator.java +++ b/community/io/src/main/java/org/neo4j/io/mem/GrabAllocator.java @@ -320,15 +320,15 @@ private static CleanerHandles findCleanerHandles() } } - private static MethodHandle findCleanMethod( MethodHandles.Lookup lookup, Class oldCleaner ) throws IllegalAccessException, NoSuchMethodException + private static MethodHandle findCleanMethod( MethodHandles.Lookup lookup, Class cleaner ) throws IllegalAccessException, NoSuchMethodException { - return lookup.unreflect( oldCleaner.getDeclaredMethod( "clean" ) ); + return lookup.unreflect( cleaner.getDeclaredMethod( "clean" ) ); } - private static MethodHandle findCreationMethod( String methodName, MethodHandles.Lookup lookup, Class oldCleaner ) + private static MethodHandle findCreationMethod( String methodName, MethodHandles.Lookup lookup, Class cleaner ) throws IllegalAccessException, NoSuchMethodException { - return lookup.unreflect( oldCleaner.getDeclaredMethod( methodName, Object.class, Runnable.class ) ); + return lookup.unreflect( cleaner.getDeclaredMethod( methodName, Object.class, Runnable.class ) ); } private static final class CleanerHandles