dev@glassfish.java.net

Re: code review needed - new local authentication mechanism

From: Kin-man Chung <Kin-Man.Chung_at_Sun.COM>
Date: Mon, 17 Aug 2009 17:19:57 -0700

> > 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. :-)