commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [lang] ImmutablePair is final
Date Tue, 22 Oct 2013 17:15:18 GMT
On 22 October 2013 18:10, Gary Gregory <garydgregory@gmail.com> wrote:
> Hi All:
>
> Is there any reason we would want to keep ImmutablePair final?

To stop mutable subclasses from being created?

BTW, it's unfortunate that the fields are public; they should have
been private (there are public getters).

> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message