Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289644

Add a throwIf method to RuntimeException

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      All operating systems
      A DESCRIPTION OF THE PROBLEM :
      Adding a new method to RuntimeException that will allow it (and all child classes of RuntimeException, thanks to inheritance) to be able to concisely validate preconditions. This is meant to mimic the functionality provided by Objects.requireNonNull.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: