Prev: Is the UNNEST function standard and/or widespread?
Next: Protocol conversion / active mediation
From: John B. Matthews on 11 May 2010 16:27 In article <4be87904$0$275$14726298(a)news.sunsite.dk>, Arne Vajhøj <arne(a)vajhoej.dk> wrote: > On 10-05-2010 11:31, John B. Matthews wrote: > > Recently, the Java example in the Wikipedia article entitled "Adapter > > Pattern" [1] was modified to use the keyword "final" in a way that may > > be considered superfluous [2]. The revision also incorrectly used the > > for-each loop. The example is reasonable, but it differs considerably > > from one recently proposed [3]. I've edited the article, but I'd be > > grateful for any review or corrections. > > > > [1]<http://en.wikipedia.org/wiki/Adapter_pattern> > > [2]<http://stackoverflow.com/questions/500517> > > [3]<http://groups.google.com/group/comp.lang.java.programmer/browse_frm/thread/898c30260012fba3> > > Looks fine to me. > > I don't like the "one final keyword per line of code" practice. > > I would have used the old instanceof and () cast instead > of those Class methods, but that does not seem to be > important for the point. Arne: Thanks for looking at this. Your point about the focus of example code is well taken. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
First
|
Prev
|
Pages: 1 2 Prev: Is the UNNEST function standard and/or widespread? Next: Protocol conversion / active mediation |