hello, i found a Code Quality Issue for this file that Conditions should not unconditionally evaluate to "TRUE" or to "FALSE".
previous condition IsEnabled && (collection != null && collection.contains(expected)) ensures the collection is not null. so the collection == null is always false and the code AssertHelper("Assertion failed: collection is null"); will never be executed.
https://rules.sonarsource.com/java/type/Bug/RSPEC-1145
hello, i found a Code Quality Issue for this file that Conditions should not unconditionally evaluate to "TRUE" or to "FALSE". previous condition
IsEnabled && (collection != null && collection.contains(expected))
ensures thecollection
is not null. so thecollection == null
is always false and the codeAssertHelper("Assertion failed: collection is null");
will never be executed. https://rules.sonarsource.com/java/type/Bug/RSPEC-1145