Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-26

[patch] added null check to byte array equals and removed unneeded try-catch block

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • common
    • None

    Description

      null checks weren't being performed in the equals(byte[], int, byte[], int, int) method.

      remove the try-catch block from equals(byte[], byte[]) method because the length equality check prevents the exception from ever being thrown.

      changes are complimented with a full battery of test cases.

      Attachments

        Activity

          People

            jdillon Jason Dillon
            brentworden Brent Worden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: