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

StrBuilder.equals(StrBuilder) doesn't check for null inputs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5
    • lang.text.*
    • None

    Description

      The following test will fail because the equals(StrBuilder) overload in StrBuilder does not check for null inputs:

          @Test
          public void testEqualsWithNullStrBuilder() throws Exception {
              final StrBuilder sb = new StrBuilder();
              final StrBuilder other = null;
              assertFalse(sb.equals(other));
          }
      

      Attachments

        Activity

          People

            britter Benedikt Ritter
            britter Benedikt Ritter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: