public static Class [ ] convertToTypeArray ( Object [ ] args ) { if ( args == null ) return null ; int s = args . length ; Class [ ] ans = new Class [ s ] ; for ( int i = 0 ; i < s ; i ++ ) { Object o = args [ i ] ; ans [ i ] = getClassWithNullAndWrapper ( o ) ; } return ans ; }
param instance array to the type array