Please look at this code, I think it looks funny.
if ("".equals(StringUtility.blanknull(in_strSelectedValue)))
{
doSomething;
}
The blanknull(String) return this this:
return((in_string == null) ? "" : in_string);
Wouldn't writing it like this do the samething as the first if statement?:
if (in_strSelectedValue.equals(""))
{
doSomething;
}
Thank you for any comments.
[This message has been edited by Melinda Wilson (edited October 25, 2001).]
if ("".equals(StringUtility.blanknull(in_strSelectedValue)))
{
doSomething;
}
The blanknull(String) return this this:
return((in_string == null) ? "" : in_string);
Wouldn't writing it like this do the samething as the first if statement?:
if (in_strSelectedValue.equals(""))
{
doSomething;
}
Thank you for any comments.
[This message has been edited by Melinda Wilson (edited October 25, 2001).]