Class ObjectUtils
- java.lang.Object
-
- org.apache.maven.surefire.api.util.internal.ObjectUtils
-
public final class ObjectUtils extends java.lang.Object
Similar to Java 7 java.util.Objects.- Since:
- 2.20
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ObjectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isSecurityManagerSupported()
static java.util.Map<java.lang.String,java.lang.String>
systemProps()
static <T> T
useNonNull(T target, T fallback)
-
-
-
Method Detail
-
useNonNull
public static <T> T useNonNull(T target, T fallback)
-
systemProps
public static java.util.Map<java.lang.String,java.lang.String> systemProps()
-
isSecurityManagerSupported
public static boolean isSecurityManagerSupported()
- Returns:
- true if SecurityManager is supported (even if deprecated) in JDK (up to 17)
-
-