Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-781

Null-Check to variable Object parameters - ObjectUtils.isAnyNull

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.5
    • lang.*

    Description

      Sometimes it would be very comfortable, to test a few objects to null. Instead of writing if(obj1==null || obj2==null || ...), using a method like isAnyNull(obj1, obj2, ...) would be much better.

      Attachments

        1. ObjectUtils.java.patch
          0.9 kB
          Sandro Lehmann
        2. ObjectUtilsTest.java.patch
          1 kB
          Sandro Lehmann

        Issue Links

          Activity

            People

              pascalschumacher Pascal Schumacher
              chucky81 Sandro Lehmann
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: