186187188189190191192193
* Unwraps a {@link Wrapper}. * This method is called by the handle to unwrap a Wrapper, which * we use to force method selection. */ public static Object unwrap(Object o) { Wrapper w = (Wrapper) o; return w.unwrap(); }
880881882883884885886887888889
} private static Class getClassWithNullAndWrapper(Object arg) { if (arg == null) return null; if (arg instanceof Wrapper) { Wrapper w = (Wrapper) arg; return w.getType(); } return arg.getClass(); }