From c526de92007fbc592f02d4001b0a910a6595b586 Mon Sep 17 00:00:00 2001 From: MishaDemianenko Date: Fri, 8 Jun 2018 10:51:24 +0200 Subject: [PATCH] Renaming variables after method extractions --- .../io/src/main/java/org/neo4j/io/mem/GrabAllocator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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