Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34364

add Status support to invariant()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-rc0
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 2018-04-23, Repl 2018-05-07

      Description

      Code that require the use of invariants currently use invariant() for boolean conditions and invariantOK() for Statuses. Extending invariant() to support Status would mean one fewer assertion function for developers to remember.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benety.goh Benety Goh
              Reporter:
              benety.goh Benety Goh
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: