(List methods, Object[] args)
| 128 | } |
| 129 | |
| 130 | private static Method matchMethod(List methods, Object[] args) { |
| 131 | Method foundm = null; |
| 132 | for(Iterator i = methods.iterator(); i.hasNext();) { |
| 133 | Method m = (Method) i.next(); |
| 134 | Class[] params = m.getParameterTypes(); |
| 135 | if(isCongruent(params, args) && (foundm == null || Compiler.subsumes(params, foundm.getParameterTypes()))) |
| 136 | foundm = m; |
| 137 | } |
| 138 | return foundm; |
| 139 | } |
| 140 | |
| 141 | private static Object[] widenBoxedArgs(Object[] args) { |
| 142 | Object[] widenedArgs = new Object[args.length]; |
no test coverage detected