Re: Any Checkstyle users?
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 11:58:09 GMT
On Tue, 31 Jan 2006 11:04:17 -0000, "Daniel Dyer"
<dan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote, quoted or indirectly
quoted someone who said :
>"write locking yourself into ArrayList"
You make it difficult to change to some other List implementation. If
you use an explicit ArrayList reference, you can inadvertently use
methods defined only for ArrayList but not for other Lists.
Using an List reference, forces you write vanilla code where you can
change the collection implementation later easily.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- References:
- Any Checkstyle users?
- From: slippymississippi
- Re: Any Checkstyle users?
- From: mikm
- Re: Any Checkstyle users?
- From: mikm
- Re: Any Checkstyle users?
- From: Tony Morris
- Re: Any Checkstyle users?
- From: Roedy Green
- Re: Any Checkstyle users?
- From: Daniel Dyer
- Any Checkstyle users?
- Prev by Date: Re: Any Checkstyle users?
- Next by Date: Re: How to byte[ ] --> char[ ] and char[ ] --> byte[ ]?
- Previous by thread: Re: Any Checkstyle users?
- Next by thread: Re: Any Checkstyle users?
- Index(es):
Relevant Pages
|