protected String getArguments ( Object [ ] args ) { if ( args == null || args . length == 0 ) { return "" ; } StringBuilder sb = new StringBuilder ( ) ; if ( args . length == 1 ) { Object arg = args [ 0 ] ; String param = getSingleArgParameterAsString ( arg ) ; String displayParam = getSingleArgDisplayParameter ( param ) ; if ( arg instanceof String ) { sb . append ( "\"" ) ; sb . append ( displayParam ) ; sb . append ( "\"" ) ; } else { sb . append ( displayParam ) ; } } else { for ( int i = 0 ; i < args . length ; i ++ ) { Object arg = args [ i ] ; boolean lastArg = i == args . length - 1 ; String param = getParameterAsString ( arg ) ; String displayParam = getDisplayParameter ( param ) ; if ( arg instanceof String ) { sb . append ( "\"" ) ; sb . append ( displayParam ) ; sb . append ( "\"" ) ; } else { sb . append ( displayParam ) ; } if ( ! lastArg ) { sb . append ( "," ) ; } } } return sb . toString ( ) ; }
Convert method parameters to a string .