Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 23 Apr 2013 13:07:03 -0500 Date: Tue, 23 Apr 2013 21:06:10 +0300 From: Donkey Hottie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: References: <9h4i4a-kvp.ln1@tempest.fredriksson.dy.fi> <25zdt.2945$N74.2063@newsfe10.iad> In-Reply-To: <25zdt.2945$N74.2063@newsfe10.iad> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: Lines: 30 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-AGL/jLHVTbkQAq6Ty3X6HYV40bWMGlidAKLyicFEXdjHJ1O75qMH6ACUYRHf0ttj3wdvpjfZMgAgo5V!Qmqbi1PFbogB3nF1xECbfWGctyoeH3XOQ8DfgJvHLJDK4u5qYaZPdk0obQW9qxFTfgIT X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2787 X-Received-Bytes: 2928 Xref: csiph.com comp.lang.java.programmer:23591 23.04.2013 19:58, Daniel Pitts kirjoitti: >>>> On 23/04/13 14:55, Steven Simpson wrote: >>>>> On 23/04/13 11:31, Donkey Hottie wrote: >>>>>> 23.04.2013 12:48, Steven Simpson kirjoitti: >>>>>>> public static String generateWindowsArgument(List >>>>>>> args) { >>>>>> java.lang.String is final, so nothing can extend it. >>>>>> >>>>> >>>>> It's a matter of habit drawn from the general principle that if I >>>>> don't >>>>> need to modify the list, I don't impose the additional, unnecessary >>>>> constraint on the caller, regardless of the element type. >>>> > > List fooList1; > List fooList2; > > fooList1 can be assigned an instance of List, or List. > fooList2 can *only* be be assigned an instance of List, not > List. This is an unnecessary constraint on the caller. > > Again, in the case of "String", there isn't a difference. but that is a > special edge case which needn't change the general behavior. Thanks for the explanation and discussion. I'm a bit wiser now. -- Today is the first day of the rest of the mess.