@Test public void present_or_null() { thrown.expect(NullPointerException.class); thrown.expectMessage("use orNull() instead of or(null)"); present.or(null); }
public abstract T or(T defaultValue);
Optional { public abstract T or(T defaultValue); }
Optional { public abstract T or(T defaultValue);  }
Optional { public abstract T or(T defaultValue);  @SuppressWarnings("unchecked") static Optional<T> absent(); static Optional<T> of(T reference); abstract boolean isPresent(); abstract T get(); abstract T or(T defaultValue); @CheckForNull abstract T orNull(); }
Optional { public abstract T or(T defaultValue);  @SuppressWarnings("unchecked") static Optional<T> absent(); static Optional<T> of(T reference); abstract boolean isPresent(); abstract T get(); abstract T or(T defaultValue); @CheckForNull abstract T orNull();  }