- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for requireNonNullElse (0.06 seconds)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/logging/SystemLogger.java
this(out, null); } public SystemLogger(@Nullable OutputStream out, @Nullable Level threshold) { this.out = new PrintWriter(toPsOrDef(out, System.err), true); this.threshold = Objects.requireNonNullElse(threshold, Level.INFO); } private PrintStream toPsOrDef(OutputStream outputStream, PrintStream def) { if (outputStream == null) { return def; }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Feb 08 16:25:25 GMT 2025 - 2.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionRangeResolverRequest.java
* @return this builder, never {@code null} */ public VersionResolverRequestBuilder nature(Nature nature) { this.nature = Objects.requireNonNullElse(nature, Nature.RELEASE_OR_SNAPSHOT); return this; } /** * Sets the repositories to use for resolving the version range. *Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 16 13:41:14 GMT 2025 - 10.4K bytes - Click Count (0) -
android/guava/src/com/google/common/base/MoreObjects.java
* lazy evaluation of the fallback instance, using {@link Optional#or(Supplier) * first.or(supplier)}. * * <p><b>Java 9 users:</b> use {@code java.util.Objects.requireNonNullElse(first, second)} * instead. * * @return {@code first} if it is non-null; otherwise {@code second} if it is non-null * @throws NullPointerException if both {@code first} and {@code second} are nullCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 16.1K bytes - Click Count (0) -
guava/src/com/google/common/base/MoreObjects.java
* lazy evaluation of the fallback instance, using {@link Optional#or(Supplier) * first.or(supplier)}. * * <p><b>Java 9 users:</b> use {@code java.util.Objects.requireNonNullElse(first, second)} * instead. * * @return {@code first} if it is non-null; otherwise {@code second} if it is non-null * @throws NullPointerException if both {@code first} and {@code second} are nullCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 16.6K bytes - Click Count (0)