Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Should a null string be a valid StringAttribute?

Greg,

I can automatically convert a null to the empty string, and not have
to worry about throwing exceptions or invalid values.

R^2

On Thu, 2007-05-31 at 09:47 -0600, Greg Watson wrote:
> No, I think it should only allow the empty string. Null is really an  
> object, and StringAttributes are not objects, they're attributes.
> 
> Greg
> 
> On May 31, 2007, at 9:40 AM, Randy M. Roberts wrote:
> 
> > Greg,
> >
> > Should a null string be a valid StringAttribute?
> > If so, then I need to test for null before doing
> > some of the method calculations.  If not, then
> > I need to change isValid(String str) to return false,
> > and the setters to throw exceptions for null.
> >
> > Regards,
> > Randy
> > -- 
> > Randy M. Roberts
> > rsqrd@xxxxxxxx
> > work: (505)665-4285
> >
> > "This is how Liberty dies - with thunderous applause."
> >                             -- Senator Amidala (Star Wars: Episode  
> > III)
> >
> >
> > _______________________________________________
> > ptp-dev mailing list
> > ptp-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/ptp-dev
> 
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-dev



Back to the top