PMD: Ternary operators that can be simplified with || or &&

This commit is contained in:
Gary Gregory 2022-08-23 10:56:01 -04:00
parent cec7857a0e
commit 4deabadb97
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ public class ObjectUtils {
* @since 3.5
*/
public static boolean allNotNull(final Object... values) {
return values != null ? Stream.of(values).noneMatch(Objects::isNull) : false;
return values != null && Stream.of(values).noneMatch(Objects::isNull);
}
/**