This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | options to equals-hashcode generator | ||
---|---|---|---|
Product: | java | Reporter: | aekold <aekold> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
aekold
2009-04-24 10:31:21 UTC
Here is some code from my EqualsHashCodeGenerator.java: // if (obj == this) return true; statements.add(make.If(make.Binary(Tree.Kind.EQUAL_TO, make.Identifier("this"), make.Identifier("obj")), make.Return(make.Identifier("true")), null)); //if (!(obj instanceof <this type>)) return false; statements.add(make.If(make.Unary(Tree.Kind.LOGICAL_COMPLEMENT, make.Parenthesized(make.InstanceOf(make.Identifier("obj"), make.Type(type)))), make.Return(make.Identifier("false")), null)); *** This bug has been marked as a duplicate of bug 156994 *** |