(Class<?> cls, String name, List<Object> args)
| 833 | } |
| 834 | |
| 835 | private static Method findCompatibleMethod(Class<?> cls, String name, List<Object> args) { |
| 836 | // prefer public methods first |
| 837 | Method m = findCompatibleIn(cls.getMethods(), name, args); |
| 838 | if (m != null) return m; |
| 839 | // then declared (non-public) |
| 840 | return findCompatibleIn(cls.getDeclaredMethods(), name, args); |
| 841 | } |
| 842 | |
| 843 | private static Method findCompatibleIn(Method[] methods, String name, List<Object> args) { |
| 844 | for (Method m : methods) { |
no test coverage detected