(Method m, Object target)
| 44 | } |
| 45 | |
| 46 | private static boolean canAccess(Method m, Object target) { |
| 47 | if (CAN_ACCESS_PRED != null) { |
| 48 | // JDK9+ use j.l.r.AccessibleObject::canAccess, which respects module rules |
| 49 | try { |
| 50 | return (boolean) CAN_ACCESS_PRED.invoke(m, target); |
| 51 | } catch (Throwable t) { |
| 52 | throw Util.sneakyThrow(t); |
| 53 | } |
| 54 | } else { |
| 55 | // JDK 8 |
| 56 | return true; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | private static Collection<Class> interfaces(Class c) { |
| 61 | Set<Class> interfaces = new HashSet<Class>(); |
no test coverage detected