Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for requireNonNullElse (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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)
  2. 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 null
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 16.6K bytes
    - Click Count (0)
Back to Top