@Test public void testCreate() throws Exception { Object cleaner = GridCleaner.create(this, new Runnable() { @Override public void run() { } }); assert cleaner != null; String clsName = cleaner.getClass().getName(); assert clsName.equals("sun.misc.Cleaner") || clsName.equals("jdk.internal.ref.CleanerImpl$PhantomCleanableRef"); }
public static Object create(Object obj, Runnable act) { try { return initMtd.invoke(instance, obj, act); } catch (ReflectiveOperationException e) { throw new IgniteException(e); } }
GridCleaner { public static Object create(Object obj, Runnable act) { try { return initMtd.invoke(instance, obj, act); } catch (ReflectiveOperationException e) { throw new IgniteException(e); } } }
GridCleaner { public static Object create(Object obj, Runnable act) { try { return initMtd.invoke(instance, obj, act); } catch (ReflectiveOperationException e) { throw new IgniteException(e); } }  }
GridCleaner { public static Object create(Object obj, Runnable act) { try { return initMtd.invoke(instance, obj, act); } catch (ReflectiveOperationException e) { throw new IgniteException(e); } }  static Object create(Object obj, Runnable act); }
GridCleaner { public static Object create(Object obj, Runnable act) { try { return initMtd.invoke(instance, obj, act); } catch (ReflectiveOperationException e) { throw new IgniteException(e); } }  static Object create(Object obj, Runnable act);  }