public static class AndroidInterceptors.CleanerInterceptor extends Interceptor
Maps calls to Cleaner, which moved between Java 8 and 9:
sun.misc.Cleaner.create() -> new java.lang.ref.Cleaner().register()sun.misc.Cleaner.clean() -> java.lang.ref.Cleaner.Cleanable().clean()| Constructor and Description |
|---|
CleanerInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
MethodHandle |
getMethodHandle(String methodName,
MethodType type) |
Function<Object,Object> |
handle(MethodSignature methodSignature) |
getMethodRefs, returnDefaultValuepublic Function<Object,Object> handle(MethodSignature methodSignature)
handle in class Interceptorpublic MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException
getMethodHandle in class InterceptorNoSuchMethodExceptionIllegalAccessException