Why use String.valueOf(msg) in StringEncoder?
Nicolas Désy
liguorien at hotmail.com
Thu Aug 6 16:40:25 EDT 2009
It is to prevent a NullPointerException when calling getBytes() on the String instance.
-Nicolas
> From: mmcgrady at topiatechnology.com
> To: netty-users at lists.jboss.org
> Subject: Why use String.valueOf(msg) in StringEncoder?
> Date: Thu, 6 Aug 2009 10:58:40 -0700
>
> If there a reason why encoding uses String.valueOf(msg) in
> StringEncoder instead of just msg? I cannot see the value of,
> valueOf, pun intended.
>
> Mike
>
> Mike McGrady
> Principal Investigator AF081-028 AFRL SBIR
> Senior Engineer
> Topia Technology, Inc.
> 1.253.720.3365
> mmcgrady at topiatechnology.com
>
>
>
>
>
>
>
>
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20090806/2b500d15/attachment.html
More information about the netty-users
mailing list