portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sean Taylor" <da...@bluesunrise.com>
Subject RE: cvs commit:jakarta-jetspeed/src/java/org/apache/jetspeed/webservices/finance/stockmarket JetspeedStockQuoteService.java
Date Fri, 16 Nov 2001 19:09:03 GMT
> Just a style nit, most people write this as:
>
>     symbols == null

I prefer the way Santiago wrote it, since you can sometimes make mistakes as
in:

> > +        if (symbols = null || symbols.length < 1)

but the compiler won't allow this

> > +        if (null = symbols || symbols.length < 1)

David

> -----Original Message-----
> From: Jon Stevens [mailto:jon@latchkey.com]
> Sent: Friday, November 16, 2001 10:32 AM
> To: jetspeed-dev
> Subject: Re: cvs
> commit:jakarta-jetspeed/src/java/org/apache/jetspeed/webservic
> es/finance
> /stockmarket JetspeedStockQuoteService.java
>
>
> on 11/16/01 5:51 AM, "sgala@apache.org" <sgala@apache.org> wrote:
>
> > +        if (null == symbols || symbols.length < 1)
>
> Just a style nit, most people write this as:
>
>     symbols == null
>
> -jon
>
>
> --
> To unsubscribe, e-mail:
> <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:jetspeed-dev-help@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message