If statement can be simplified

This commit is contained in:
Benedikt Ritter 2015-05-05 19:03:19 +02:00
parent 1cb5573ada
commit e2ec4f2fdb
1 changed files with 1 additions and 4 deletions

View File

@ -2841,10 +2841,7 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
*/
@Override
public boolean equals(final Object obj) {
if (obj instanceof StrBuilder) {
return equals((StrBuilder) obj);
}
return false;
return obj instanceof StrBuilder && equals((StrBuilder) obj);
}
/**