Use logical 'and' instead of bitwise 'and'
Closes gh-8198
This commit is contained in:
committed by
Stephane Nicoll
parent
b4858882f3
commit
0adab8a2be
@@ -142,17 +142,17 @@ public abstract class AnnotationCustomizableTypeExcludeFilter extends TypeExclud
|
||||
}
|
||||
AnnotationCustomizableTypeExcludeFilter other = (AnnotationCustomizableTypeExcludeFilter) obj;
|
||||
boolean result = true;
|
||||
result &= hasAnnotation() == other.hasAnnotation();
|
||||
result = result && hasAnnotation() == other.hasAnnotation();
|
||||
for (FilterType filterType : FilterType.values()) {
|
||||
result &= ObjectUtils.nullSafeEquals(getFilters(filterType),
|
||||
other.getFilters(filterType));
|
||||
}
|
||||
result &= isUseDefaultFilters() == other.isUseDefaultFilters();
|
||||
result &= ObjectUtils.nullSafeEquals(getDefaultIncludes(),
|
||||
result = result && isUseDefaultFilters() == other.isUseDefaultFilters();
|
||||
result = result && ObjectUtils.nullSafeEquals(getDefaultIncludes(),
|
||||
other.getDefaultIncludes());
|
||||
result &= ObjectUtils.nullSafeEquals(getComponentIncludes(),
|
||||
result = result && ObjectUtils.nullSafeEquals(getComponentIncludes(),
|
||||
other.getComponentIncludes());
|
||||
return result;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user