Use equals for contains method object comparison.
Contributed by Sahar.
This commit is contained in:
@ -458,7 +458,7 @@ public final class CommonUtil
|
||||
{
|
||||
for (T element : array)
|
||||
{
|
||||
if (element == obj)
|
||||
if (element.equals(obj))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user