Jid.of()

Issue #64 wontfix
Former user created an issue

I think Jid.of(null) should return null

Comments (3)

  1. Christian Schudt repo owner

    When I look at JDK factory methods, all of these throw a NullPointerException:

    Integer.valueOf(null);
    String.valueOf(null);
    Instant.parse(null);
    LocalDate.of(0, null, 2);
    Locale.forLanguageTag(null);
    Class.forName(null);
    Character.UnicodeScript.valueOf(null);
    EnumSet.of(null);
    

    Therefore I am not convinced this is the right approach.

  2. Markus KARG

    Maybe the anonymous original author of this ticket could provide some use case to make us understand the feasibility of his request?

  3. Log in to comment