Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
3.1
-
None
-
Windows 7
Description
In class EqualsBuilder, the documentation gives sample code on how to use EqualsBuilder. The proper usage of class EqualsBuilder is a bit long. My suggestion is to encapsulate the following trivial test into a method inside the class EqualsBuilder. You call it the new method trivalTest(Object obj1, Object obj2).
// This is the code that should be put in a method to avoid repeating....
if (obj == null)
if (obj == this)
{ return true; }if (obj.getClass() != getClass())
{ return false; }