(Class[] params, Object[] args)
| 675 | } |
| 676 | |
| 677 | static boolean isCongruent(Class[] params, Object[] args){ |
| 678 | boolean ret = false; |
| 679 | if(args == null) |
| 680 | return params.length == 0; |
| 681 | if(params.length == args.length) |
| 682 | { |
| 683 | ret = true; |
| 684 | for(int i = 0; ret && i < params.length; i++) |
| 685 | { |
| 686 | Object arg = args[i]; |
| 687 | Class argType = (arg == null) ? null : arg.getClass(); |
| 688 | Class paramType = params[i]; |
| 689 | ret = paramArgTypeMatch(paramType, argType); |
| 690 | } |
| 691 | } |
| 692 | return ret; |
| 693 | } |
| 694 | |
| 695 | public static Object prepRet(Class c, Object x){ |
| 696 | if (!(c.isPrimitive() || c == Boolean.class)) |
no test coverage detected