[Minor] code cleanup

This commit is contained in:
Robert von Burg 2020-09-02 09:42:50 +02:00
parent c1fde56136
commit e2b525c045
1 changed files with 4 additions and 4 deletions

View File

@ -114,10 +114,10 @@ public class ObjectHelper {
return false;
if (left instanceof Collection) {
Collection<?> leftCollection = (Collection) left;
Collection<?> leftCollection = (Collection<?>) left;
if (right instanceof Collection) {
Collection<?> rightCollection = (Collection) right;
Collection<?> rightCollection = (Collection<?>) right;
for (Object l : leftCollection) {
for (Object r : rightCollection) {
if (contains(l, r, ignoreCase))
@ -224,10 +224,10 @@ public class ObjectHelper {
return false;
if (right instanceof Collection) {
Collection<?> collectionRight = (Collection) right;
Collection<?> collectionRight = (Collection<?>) right;
if (left instanceof Collection) {
Collection<?> collectionLeft = (Collection) left;
Collection<?> collectionLeft = (Collection<?>) left;
for (Object l : collectionLeft) {
for (Object r : collectionRight) {
if (equals(r, l, ignoreCase))