What methods should go into a java.util.Objects class in JDK 7? (original) (raw)

Bob Lee crazybob at crazybob.org
Sat Oct 10 02:07:43 UTC 2009


On Fri, Oct 9, 2009 at 6:55 PM, Paul Benedict <pbenedict at apache.org> wrote:

Understood, but the keyword (pun) here is "effectively". Why let a developer wait until runtime to find out his code will fail? At least by marking the class as final, anybody who wishes to subclass it will receive a compiler error. Rain on the parade early :-)

Paul, this is caught at compile time, since you can't call the private constructor. The "final" would be redundant.

Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20091009/0d71f92e/attachment.html>



More information about the core-libs-dev mailing list