<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
It is to prevent a NullPointerException when calling getBytes() on the String instance.<div><br></div><div>-Nicolas</div><div><br><br>> From: mmcgrady@topiatechnology.com<br>> To: netty-users@lists.jboss.org<br>> Subject: Why use String.valueOf(msg) in StringEncoder?<br>> Date: Thu, 6 Aug 2009 10:58:40 -0700<br>> <br>> If there a reason why encoding uses String.valueOf(msg) in <br>> StringEncoder instead of just msg? I cannot see the value of, <br>> valueOf, pun intended.<br>> <br>> Mike<br>> <br>> Mike McGrady<br>> Principal Investigator AF081-028 AFRL SBIR<br>> Senior Engineer<br>> Topia Technology, Inc.<br>> 1.253.720.3365<br>> mmcgrady@topiatechnology.com<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> netty-users mailing list<br>> netty-users@lists.jboss.org<br>> https://lists.jboss.org/mailman/listinfo/netty-users<br></div></body>
</html>