You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2015/05/05 19:15:59 UTC
[jira] [Created] (LANG-1131) StrBuilder.equals(StrBuilder) doesn't
check for null inputs
Benedikt Ritter created LANG-1131:
-------------------------------------
Summary: StrBuilder.equals(StrBuilder) doesn't check for null inputs
Key: LANG-1131
URL: https://issues.apache.org/jira/browse/LANG-1131
Project: Commons Lang
Issue Type: Bug
Components: lang.text.*
Reporter: Benedikt Ritter
Fix For: 3.5
The following test will fail because the {{equals(StrBuilder)}} overload in {{StrBuilder}} does not check for null inputs:
{code:java}
@Test
public void testEqualsWithNullStrBuilder() throws Exception {
final StrBuilder sb = new StrBuilder();
final StrBuilder other = null;
assertFalse(sb.equals(other));
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)