(Object obj, Object methodName, Object[] args)
| 748 | } |
| 749 | |
| 750 | public static Object callDynamicallyAsync(Object obj, Object methodName, Object[] args) { |
| 751 | if (args == null) args = new Object[]{}; |
| 752 | String name = (String) methodName; |
| 753 | Method m = findMethod(obj.getClass(), name, args.length); |
| 754 | try { |
| 755 | m.setAccessible(true); |
| 756 | Object res = m.invoke(obj, args); |
| 757 | if (res instanceof CompletableFuture) { |
| 758 | return ((CompletableFuture<?>) res).get(); |
| 759 | } |
| 760 | return res; |
| 761 | } catch (Exception e) { |
| 762 | throw new RuntimeException(e); |
| 763 | } |
| 764 | } |
| 765 | |
| 766 | public static boolean inOp(Object obj, Object key) { return InOp(obj, key); } |
| 767 |
nothing calls this directly
no test coverage detected