dev@glassfish.java.net

Re: code review needed - new local authentication mechanism

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Mon, 17 Aug 2009 17:29:43 -0700

Kin-man Chung wrote on 08/17/09 17:19:
>
>> > 2. Isn't there already a toHex() somewhere in common-util? Seems
>> like a shame to not put it into a shared place and/or use one we
>> already have.
>>
>> Find me one and I'll use it!
>>
>
> You can use Character.forDigit(b, 16) to convert a byte to char, but it
> may not be more efficient than what you have. :-)

That just replaces the array and array subscripting. Not a big improvement,
and probably not more efficient. I could probably use String.format too, but...