PMD: Ternary operators that can be simplified with || or &&
This commit is contained in:
parent
cec7857a0e
commit
4deabadb97
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue