Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16866

Restore lenient null return value for ConditionContext.getBeanFactory()

    Details

      Description

      Following the nullability changes in 5.0, three methods on ConditionContext may no longer return null, but may now throw an IlegalStateException instead. Those methods are:

      • getRegistry()
      • getBeanFactory()
      • getClassLoader()

      It would be useful if their javadoc documented that an IllegalStateException may now be thrown.

        Attachments

          Activity

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              awilkinson Andy Wilkinson
              Last updater:
              St├ęphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                11 weeks ago