Commons Sandbox
  1. Commons Sandbox
  2. SANDBOX-365

Extend Assertions for checking null references in arrays

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Component/s: BeanUtils2
    • Labels:
      None

      Description

      As discussed at SANDBOX-363, Assertions should provide a method to make sure an input array does not contain any null references.

      1. SANDBOX-365.txt
        5 kB
        Benedikt Ritter

        Activity

        Hide
        Benedikt Ritter added a comment -

        As discussed at SANDBOX-363 I implemented checkNoneIsNull(T[] references). There is no check if the array refernce itself is null (because, as Simone Tripodi pointed out, this is a different concern). The user is responsible for making sure, the input array is not null. I added that to the javadoc.

        Show
        Benedikt Ritter added a comment - As discussed at SANDBOX-363 I implemented checkNoneIsNull(T[] references). There is no check if the array refernce itself is null (because, as Simone Tripodi pointed out, this is a different concern). The user is responsible for making sure, the input array is not null. I added that to the javadoc.
        Hide
        Simone Tripodi added a comment -

        patch applied, see r1234607

        thanks for contributing!

        Show
        Simone Tripodi added a comment - patch applied, see r1234607 thanks for contributing!

          People

          • Assignee:
            Simone Tripodi
            Reporter:
            Benedikt Ritter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development