Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-2180

Unified judgment object is not null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.1
    • None
    • server
    • None

    Description

      In Ratis, there are now two ways to check if an object is not null.
      Use Preconditions.assertNotNull(). For example:

      Preconditions.assertNotNull(getServerRpc(), "getServerRpc()");
      

      Use Objects.requireNonNull(). For example:

      Objects.requireNonNull(request, "request == null");
      

      We should unify them.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jianghuazhu JiangHua Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: