Skip to content

Commit

Permalink
Renaming variables after method extractions
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaDemianenko committed Jun 12, 2018
1 parent d4a8863 commit c526de9
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -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 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 private static final class CleanerHandles
Expand Down

0 comments on commit c526de9

Please sign in to comment.