Gili created NETBEANS-415:

             Summary: Revisit hashCode(), equals() implementation
                 Key: NETBEANS-415
             Project: NetBeans
          Issue Type: Improvement
          Components: editor - Completion & Templates
            Reporter: Gili

Given that Netbeans now requires JDK 7, consider having the code generator 
delegate to
 {{Objects.hashCode(Object)}} and {{Objects.hash(Object...) as they result in 
cleaner code.}}

As for {{equals()}}, the implementation generated by Netbeans violates the Java 
specification of java.lang.Object and should be fixed right away. You can read 
a more detailed discussion at 
[] but essentially we 
agreed to fix this with a flag in the Options dialog to let users decide which 
approach they prefer.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

For further information about the NetBeans mailing lists, visit:

Reply via email to