core/src/main/java/org/apache/druid/common/guava/GuavaUtils.java
/**
   * If first argument is not null, return it, else return the other argument. Sort of like
   * {@link com.google.common.base.Objects#firstNonNull(T, T)} except will not explode if both arguments are
   * null.
   */
If first argument is not null, return it, else return the other argument. Sort of like
com.google.common.base.Objects#firstNonNull(T, T) except will not explode if both arguments are
null.
If first argument is not null return it else return the other argument . Sort of like com . google . common . base . Objects#firstNonNull ( T T ) except will not explode if both arguments are null .
@Nullable
  public static <T> T firstNonNull(@Nullable T arg1, @Nullable T arg2)
  {
    if (arg1 == null) {
      return arg2;
    }
    return arg1;
  }
@ Nullable public static < T > T firstNonNull ( @ Nullable T arg1 , @ Nullable T arg2 ) { if ( arg1 == null ) { return arg2 ; } return arg1 ; }
If first argument is not null, return it, else return the other argument.
If first argument is not null return it else return the other argument .